Complete the command to check the status of pods in the default namespace.
kubectl get pods [1]The --namespace=default option shows pods in the default namespace.
Complete the command to describe a pod named 'myapp-pod' to see detailed status.
kubectl [1] pod myapp-podThe describe command shows detailed information about the pod, including events and status.
Fix the error in the command to get logs from the first container in the pod 'myapp-pod'.
kubectl logs myapp-pod [1] 0
The -c option specifies the container name or index for logs.
Fill both blanks to create a command that restarts a pod named 'myapp-pod' by deleting it.
kubectl [1] pod myapp-pod [2]
Deleting a pod with --grace-period=0 forces immediate termination, effectively restarting it if managed by a controller.
Fill all three blanks to create a command that patches a pod 'myapp-pod' to add an environment variable 'DEBUG' with value 'true'.
kubectl patch pod myapp-pod -p '{{"spec": [1]' --type=[2] [3]
The patch JSON adds the environment variable. The patch type is 'merge'. The namespace option specifies the default namespace.