Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You have created a Kubernetes deployment named nginx with the image 'nginx' and labeled it 'app=prod'. Your Kubernetes cluster hosts multiple deployments. How would you identify the pods specifically for this nginx deployment?
A
kubectl get deployments --output=pods
B
gcloud get pods --selector="app=prod"
C
gcloud list gke-deployments --filter={ pod }
D
kubectl get pods -l "app=prod"