Complete the command to list all pods in the current namespace.
kubectl get [1]The kubectl get pods command lists all pods in the current namespace.
Complete the command to describe a pod named 'web-server'.
kubectl [1] pod web-serverThe kubectl describe pod web-server command shows detailed information about the pod named 'web-server'.
Fix the error in the command to scale a deployment named 'frontend' to 3 replicas.
kubectl scale deployment frontend --replicas=[1]The replicas count must be a positive integer. Using 3 correctly scales the deployment to 3 replicas.
Fill both blanks to create a pod manifest file named 'pod.yaml' using kubectl.
kubectl [1] pod nginx --dry-run=client -o [2] > pod.yaml
The command kubectl create pod nginx --dry-run=client -o yaml generates a pod manifest in YAML format without creating it.
Fill all three blanks to get logs from a pod named 'backend' for container 'app' with 100 lines.
kubectl logs [1] -c [2] --tail=[3]
The command kubectl logs backend -c app --tail=100 fetches the last 100 lines of logs from the 'app' container in the 'backend' pod.