Complete the code to check the status of all pods in the default namespace.
kubectl get pods -n [1]The default namespace is the standard namespace where pods run if no other namespace is specified.
Complete the command to describe a pod named 'web-server' in the 'default' namespace.
kubectl [1] pod web-server -n defaultThe describe command shows detailed information about a specific pod.
Fix the error in the command to get logs from a pod named 'api-server'.
kubectl logs [1]The kubectl logs command requires the pod name as the argument to fetch logs.
Fill both blanks to create a command that watches pod status changes every 2 seconds.
watch --[1]=[2] kubectl get pods -n default
The --interval=2s option makes the watch command refresh the pod status every 2 seconds.
Fill all three blanks to create a command that labels all pods with 'env=prod' in the 'default' namespace.
kubectl label pods -n default [1] [2]=[3]
The --all flag selects all pods, and env=prod sets the label key and value.