I am using helm to deploy my applications which has deployments, pods and jobs and others. Is there any way to get "kubectl describe" output of all objects loaded by "helm install" ?
3 Answers
Tell me if it is working, but I tried with my helm charts (custom one, ES and kibana).
TL;DR
kubectl get all -l chart=myb5 -n myb5
-n
stands for namespace
-l
stands for label
Explanations
Labeling your kubernetes objects is really important, and most of the helm charts out there are using labels to easily access and select objects.
When you install a chart, it adds a label such chart=my-chart-name
. If the chart is not using it (maybe you are creating one for yourself), it is a good practice to add it.
So querying all resources with get all
should retrieve all the resources created in the default namespace.
Depending where you installed your helm chart, it is good to add the namespace field in your query.
Note that if you use 1 namespace for only 1 helm chart resources, you do not need to filter with labels.
PS: should work the same with describe ;)
Best,
kubectl describe po -l chart=chart-name
– Tarun Khoslaapp.kubernetes.io/managed-by: helm
. Since this chart is made be you in local you can add the labels yourself also. – Tarun Khoslahelm get manifest <release-name>
– Panoptik