Complete the command to check the status of all pods in the default namespace.
kubectl get [1]The command kubectl get pods lists all pods, which helps check if they are running properly.
Complete the command to describe a service named 'webapp' to check its details.
kubectl [1] service webappThe describe command shows detailed information about the service, including endpoints and events.
Fix the error in the command to check logs of a pod named 'api-server'.
kubectl logs [1]The pod name must match exactly. 'api-server' is the correct pod name without underscores or dots.
Fill both blanks to create a command that tests connectivity from a pod named 'tester' to the service 'backend' on port 80.
kubectl exec [1] -- curl [2]:80
Use kubectl exec tester to run commands inside the 'tester' pod, and curl the 'backend' service on port 80 to check connectivity.
Fill all three blanks to create a command that lists pods with label 'app=web' in the 'production' namespace.
kubectl get pods -n [1] -l [2]=[3]
The namespace is 'production', the label key is 'app', and the label value is 'web'. This command filters pods by label in the specified namespace.