Answers for "kubectl get pods filter by name"

Go
1

get containers in pod

kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'
Posted by: Guest on December-14-2020
0

using kubernetes field-selector

kubectl get pods --field-selector status.phase=Running
Posted by: Guest on June-19-2020

Browse Popular Code Answers by Language