#1 Identify the correct command to list the pods from all name spaces
kubectl get pods
kubectl get pods -n default
None
#2 Identify the command to check the logs of pod app-1
kubectl logs app1
kubectl logs app-1
kubectl logs pod app-1
#3 Identify the command used to see the logs of a specific container container-1 from app-1
kubectl logs app-1 -c container-1
kubectl logs container-1
kubectl logs -c container-1
kubectl logs app-1
#4 Identify the wrong command from below used while creating a new nginx pod with nginx image
kubectl run nginx --image nginx
kubectl run nginx --image=nginx
#5 Which of the below imperative command will be used to create new nginx pod with nginx image – tags 1.17
kubectl run nginx --image=nginx --tag:1.17
kubectl run nginx --image=nginx:1.17
kubectl run nginx --image=nginx --version:1.1.7
Results