Answers for "kubernetes get pod containers"

1

get containers in pod

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

kubernetes get inside pod

kubectl exec -it <pod-name> -- sh
Posted by: Guest on March-09-2021

Browse Popular Code Answers by Language