Answers for "kubernetes stop pod"

3

kubectl delete all pods

kubectl delete --all pods
Posted by: Guest on May-10-2020
1

get containers in pod

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

kubectl delete pods

kubectl delete pod podname
Posted by: Guest on May-10-2020
0

kubectl get pods

# Get pods in default namespace
kubectl get pods

#Get Pods in my-namespace
kubectl get pods -n my-namespace

#Get Pods in all namespaces
kubectl get pods --all-namespaces
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language