Answers for "get pod name kubectl"

1

kubernetes get inside pod

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

kubectl get pod by node

kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
Posted by: Guest on September-04-2020
0

kubectl get only pod name

kubectl get pods --template '{{range .items}}{{.metadata.name}}{{end}}' --selector=app=<CONTAINER-NAME>

//replace <CONTAINER-NAME> with your service container name
Posted by: Guest on February-11-2021
0

kubectl describe to yaml

kubectl describe <type> <name> -o yaml
Posted by: Guest on August-25-2020

Browse Popular Code Answers by Language