Answers for "get pod details kubectl"

1

kubernetes get inside pod

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

kubernetes get services

# Get pods in default namespace
kubectl get services

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

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

kubectl get pod events

kubectl get event --namespace abc-namespace --field-selector involvedObject.name=my-pod-zl6m6
Posted by: Guest on May-04-2021

Browse Popular Code Answers by Language