Collecting a Support Bundle
Learn how to collect a support bundle
Now that we have the kubectl
plugin installed, let's collect a support bundle.
A support bundle needs to know what to collect and optionally, what to analyze. This is defined in a YAML file. Open your favorite editor and paste the following content in:
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: supportbundle-tutorial
spec:
collectors: []
analyzers: []
Save the file as support-bundle.yaml
and then execute it with:
kubectl support-bundle ./support-bundle.yaml
The support bundle plugin will work for a few seconds and then show you the filename that it created.
Note: This does not deploy anything to the cluster, it's all client-side code.
In my case, the file created was named support-bundle.tar.gz
.
You can tar xzvf
the file and open it in your editor to look at the contents.