|
| 1 | +## support-bundle |
| 2 | + |
| 3 | +Generate a support bundle |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +A support bundle is an archive of files, output, metrics and state |
| 8 | +from a server that can be used to assist when troubleshooting a Kubernetes cluster. |
| 9 | + |
| 10 | +``` |
| 11 | +support-bundle [url] [flags] |
| 12 | +``` |
| 13 | + |
| 14 | +### Options |
| 15 | + |
| 16 | +``` |
| 17 | + --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. |
| 18 | + --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. |
| 19 | + --as-uid string UID to impersonate for the operation. |
| 20 | + --cache-dir string Default cache directory (default "/Users/xavpaice/.kube/cache") |
| 21 | + --certificate-authority string Path to a cert file for the certificate authority |
| 22 | + --client-certificate string Path to a client certificate file for TLS |
| 23 | + --client-key string Path to a client key file for TLS |
| 24 | + --cluster string The name of the kubeconfig cluster to use |
| 25 | + --collect-without-permissions always generate a support bundle, even if it some require additional permissions (default true) |
| 26 | + --context string The name of the kubeconfig context to use |
| 27 | + --debug enable debug logging |
| 28 | + -h, --help help for support-bundle |
| 29 | + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure |
| 30 | + --interactive enable/disable interactive mode (default true) |
| 31 | + --kubeconfig string Path to the kubeconfig file to use for CLI requests. |
| 32 | + --load-cluster-specs enable/disable loading additional troubleshoot specs found within the cluster. required when no specs are provided on the command line |
| 33 | + -n, --namespace string If present, the namespace scope for this CLI request |
| 34 | + --no-uri When this flag is used, Troubleshoot does not attempt to retrieve the bundle referenced by the uri: field in the spec.` |
| 35 | + -o, --output string specify the output file path for the support bundle |
| 36 | + --redact enable/disable default redactions (default true) |
| 37 | + --redactors strings names of the additional redactors to use |
| 38 | + --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") |
| 39 | + -l, --selector strings selector to filter on for loading additional support bundle specs found in secrets within the cluster (default [troubleshoot.io/kind=supportbundle-spec]) |
| 40 | + -s, --server string The address and port of the Kubernetes API server |
| 41 | + --since string force pod logs collectors to return logs newer than a relative duration like 5s, 2m, or 3h. |
| 42 | + --since-time string force pod logs collectors to return logs after a specific date (RFC3339) |
| 43 | + --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used |
| 44 | + --token string Bearer token for authentication to the API server |
| 45 | + --user string The name of the kubeconfig user to use |
| 46 | +``` |
| 47 | + |
| 48 | +### SEE ALSO |
| 49 | + |
| 50 | +* [support-bundle analyze](support-bundle_analyze.md) - analyze a support bundle |
| 51 | +* [support-bundle version](support-bundle_version.md) - Print the current version and exit |
| 52 | + |
| 53 | +###### Auto generated by spf13/cobra on 21-Nov-2022 |
0 commit comments