Complete the command to list all pods in the current Kubernetes cluster.
kubectl [1] podsThe kubectl get pods command lists all pods in the current cluster.
Complete the command to switch the current context to a cluster named 'prod-cluster'.
kubectl config [1] prod-clusterThe command kubectl config use-context prod-cluster switches the active cluster context to 'prod-cluster'.
Fix the error in the command to delete a pod named 'web-server'.
kubectl [1] pod web-serverThe correct command to delete a pod is kubectl delete pod web-server. Other verbs like 'remove' or 'destroy' are not valid kubectl commands.
Fill both blanks to describe the command that shows detailed information about a pod named 'db-server'.
kubectl [1] pod [2] -o yaml
The command kubectl describe pod db-server -o yaml shows detailed information about the pod in YAML format.
Fill all three blanks to create a deployment named 'frontend' using the image 'nginx:latest' with 3 replicas.
kubectl create deployment [1] --image=[2] --replicas=[3]
The command kubectl create deployment frontend --image=nginx:latest --replicas=3 creates a deployment named 'frontend' with 3 replicas of the nginx image.