Which kubectl command is used to list al pods in the current active namespace?
Fetch all Pods in all namespaces using kubectl get pods --all-namespaces
Pods
Shortcode = po
List one or more pods
kubectl get pod
Delete a pod
kubectl delete pod
Display the detailed state of a pods
kubectl describe pod
Create a pod
kubectl create pod
Execute a command against a container in a pod
kubectl exec
Get interactive shell on a a single-container pod
kubectl exec -it
Display Resource usage (CPU/Memory/Storage) for pods
kubectl top pod
Add or update the annotations of a pod
kubectl annotate pod
Add or update the label of a pod
kubectl label pod
Currently there are no comments in this discussion, be the first to comment!