Does this command display all the pods in the cluster that are labeled as 'env: development'?
Solution: 'kubectl get pods --all-namespaces -I env=development'
Suggested Answer: A
Get Premium DCA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
PE
Pearlie
11 months ago
I thought it was just for the current namespace.
TE
Terrilyn
11 months ago
Wait, are you sure about the syntax?
NA
Natalie
12 months ago
Totally agree, that command looks correct!
AN
Annita
12 months ago
I think it should be --selector instead of -I.
KE
Kelvin
12 months ago
Yes, it shows all pods with that label.
AD
Adria
1 year ago
I feel like I’ve seen this before, and I think the answer is No because of the label syntax issue.
FR
Francine
1 year ago
I’m pretty confident that it should display the pods, but I can't recall if it includes all namespaces correctly.
JE
Jesus
1 year ago
I remember practicing a similar question, and I think it should be `-l` instead of `-I` for labels.
BE
Bettina
1 year ago
I think the command is close, but I’m not sure if the syntax for the label selector is correct.
YE
Yen
1 year ago
I'm a bit confused. Using a batch file to rename the files doesn't seem like the right approach to me. I'll have to double-check the options.
FR
Freida
1 year ago
Hmm, I'm not entirely confident this is the right solution. The question mentions that some questions might not have a correct solution, so I'll need to carefully consider all the details before selecting an answer.