humza277:
hi guys, how would you use a grep along with the describe command for kubectl, i am trying to find an init container and i dont want to describe every single pod in all the namespaces
humza277:
daisy chain the pods like
kubectl describe pods green red blue pink grep “init”
Tharanath:
kubectl describe pods | grep -i init
humza277:
Thank you! Also how do you write an active pod to a new yaml file
kubectl describe pod green -o yaml > pod.yaml ?
unnivkn:
kubectl get my-pod-name -o yaml > pod.yaml