/

SupportBundle


An OpenAPI Schema for this type is published at: https://github.com/replicatedhq/kots-lint/blob/main/kubernetes-json-schema/v1.23.6-standalone-strict/supportbundle-troubleshoot-v1beta2.json.

SupportBundle Schema

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
  name: supportbundle
spec:
  collectors: []
  hostcollectors: []
  analyzers: []
  hostanalyzers: []
  uri: ""

Properties

collectors

Optional. A list of collectors. Returns information collected from the current kubectl context.

analyzers

Optional. A list of analyzers. Returns information collected from the current kubectl context.

hostcollectors

Optional. A list of hostcollector properties. Returns information from the host where the support-bundle or collect binary is executed.

hostanalyzers

Optional. A list of hostanalyzer properties. Returns information from the host where the support-bundle or collect binary is executed.

uri

Optional. A string containing a URI for a support bundle spec YAML file, in http:// or https:// protocols.

Usage: if a uri is set in a support bundle spec, Troubleshoot will attempt to download that resource and if it is retrieved, it entirely replaces the contents of the given spec. Example, given the following spec:

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
  name: supportbundle
spec:
  uri: hhttps://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml
  collectors:
    - cluster-info: {}
    - cluster-resources: {}

Troubleshoot will attempt to retrieve https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml and will use that spec in its entirety:

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
  name: default
spec:
  collectors:
    - clusterInfo: {}
    - clusterResources: {}
...

If Troubleshoot is unable to retrieve that file, or if the upstream file fails to parse as valid YAML, then it will fall back to what was given in the original spec:

spec:
  # uri: https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml
  collectors:
    - cluster-info: {}
    - cluster-resources: {}
Edit on GitHub