Skip to content

Instantly share code, notes, and snippets.

@divolgin
Created August 22, 2019 21:51
Show Gist options
  • Save divolgin/b9869be72cc9b8f2ed70a03ab17349bd to your computer and use it in GitHub Desktop.
Save divolgin/b9869be72cc9b8f2ed70a03ab17349bd to your computer and use it in GitHub Desktop.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: support-bundle
spec:
version: "{{ TagName }}"
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
uri: {{ DownloadURL "support-bundle" "linux_amd64" }}
sha256: "{{ SHA256 "support-bundle" "linux_amd64" }}"
files:
- from: "/support-bundle"
to: "."
bin: "support-bundle"
- selector:
matchLabels:
os: darwin
arch: amd64
uri: {{ DownloadURL "support-bundle" "darwin_amd64" }}
sha256: "{{ SHA256 "support-bundle" "darwin_amd64" }}"
files:
- from: "/support-bundle"
to: "."
bin: "support-bundle"
- selector:
matchLabels:
os: windows
arch: amd64
uri: {{ DownloadURL "support-bundle" "windows_amd64" }}
sha256: "{{ SHA256 "support-bundle" "windows_amd64" }}"
files:
- from: "/support-bundle.exe"
to: "."
bin: "support-bundle.exe"
shortDescription: Creates support bundles for off-cluster analysis
homepage: https://github.com/replicatedhq/troubleshoot
caveats: |
Usage:
$ kubectl support-bundle <uri>
where <uri> references a set of application collectors
For example:
$ kubectl support-bundle https://troubleshoot.replicated.com
For additional options:
$ kubectl support-bundle --help
Documentation:
Full documentation on this plugin is available at:
https://help.replicated.com/docs/troubleshoot/kubernetes/support-bundle/overview/
For application developers writing collectors and analyzers:
https://help.replicated.com/docs/troubleshoot/kubernetes/collectors/defining-collectors/
description: |
This plugin collects information about the cluster, and automatically
redacts sensitive data from being collected. This can optionally include
application-specific data. The plugin writes the collected files into a
single archive named support-bundle.tar.gz. This archive can be manually
inspected or uploaded to https://vendor.replicated.com for automated
analysis.
Application developers can create and host a Collector manifest that
defines information to be collected.
For information on creating a Collector manifest, view the documentation
at https://help.replicated.com/docs/troubleshoot/kubernetes/collectors/defining-collectors/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment