SIMULATION
List ''nginx-dev'' and ''nginx-prod'' pod and delete those pods
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
kubect1 get pods -o wide
kubectl delete po ''nginx-dev''
kubectl delete po ''nginx-prod''
30 comments · newest first
SH
Shawn
1 month ago
Good point! I hope I remember that in the exam.
MA
Makeda
2 months ago
Don't forget to check the namespace!
FR
Freeman
2 months ago
Right! Then `kubectl delete pod `.
AD
Adrianna
2 months ago
Just use `kubectl get pods` first.
SH
Shawn
2 months ago
Deleting them is the real challenge!
MA
Makeda
2 months ago
I feel confident about listing the pods.
FR
Freeman
2 months ago
I think it's straightforward if you know the commands.
AD
Adrianna
3 months ago
This question is tricky!
JO
Jonelle
3 months ago
Deleting them is easy too, just use `kubectl delete`.
MI
Mireya
3 months ago
I feel confident about listing the pods.
DE
Delisa
3 months ago
I think it's straightforward if you know the commands.
PA
Pamella
3 months ago
This question is tricky!
DE
Devorah
3 months ago
Deleting them is easy too, just need to be careful!
HO
Hollis
4 months ago
I feel confident about listing the pods.
DO
Dorthy
4 months ago
I think it's straightforward if you know the commands.
LA
Layla
4 months ago
This question is tricky!
KA
Kattie
4 months ago
Just did it, no problems so far!
TA
Talia
4 months ago
Wait, are you sure deleting them won't cause issues?
AL
Alease
6 months ago
Nginx pods are pretty lightweight, so it's fine.
AZ
Azalee
6 months ago
I thought we weren't supposed to delete prod pods?
CO
Cortney
6 months ago
Just ran the command, worked like a charm!
GE
Gerald
6 months ago
Wait, are you sure deleting them won't cause issues?
CO
Cora
6 months ago
Yeah, but sometimes you gotta clear them out.
TO
Torie
7 months ago
Nginx pods are usually pretty stable, right?
HI
Hildred
7 months ago
I thought we weren't supposed to delete prod pods?
ER
Erasmo
7 months ago
Just ran the command, worked like a charm!
CY
Cyndy
7 months ago
I think we might need to use labels to filter the pods correctly. I remember something about `-l` flag in the delete command, but I can't recall the syntax.
FE
Felix
7 months ago
I feel like I need to double-check the namespace for those pods. Are they in the default namespace or a specific one?
TA
Tammi
8 months ago
I practiced something similar last week, and I believe the delete command is `kubectl delete pod `, but I might be mixing it up with another command.
DE
Deja
8 months ago
I think I remember that we can use `kubectl get pods` to list the pods, but I'm not entirely sure about the exact command for deleting them.