U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 2 Question 95 Discussion

SIMULATIONList ''nginx-dev'' and ''nginx-prod'' pod and delete those pods
A) See the solution below

Linux Foundation CKA Exam - Topic 2 Question 95 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 95
Topic #: 2
[All CKA Questions]

SIMULATION

List ''nginx-dev'' and ''nginx-prod'' pod and delete those pods

Show Suggested Answer Hide Answer
Suggested Answer: A

kubect1 get pods -o wide

kubectl delete po ''nginx-dev''

kubectl delete po ''nginx-prod''


Contribute your Thoughts:

0/2000 characters
Alease
1 month ago
Nginx pods are pretty lightweight, so it's fine.
upvoted 0 times
...
Azalee
1 month ago
I thought we weren't supposed to delete prod pods?
upvoted 0 times
...
Cortney
2 months ago
Just ran the command, worked like a charm!
upvoted 0 times
...
Gerald
2 months ago
Wait, are you sure deleting them won't cause issues?
upvoted 0 times
...
Cora
2 months ago
Yeah, but sometimes you gotta clear them out.
upvoted 0 times
...
Torie
2 months ago
Nginx pods are usually pretty stable, right?
upvoted 0 times
...
Hildred
2 months ago
I thought we weren't supposed to delete prod pods?
upvoted 0 times
...
Erasmo
3 months ago
Just ran the command, worked like a charm!
upvoted 0 times
...
Cyndy
3 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.
upvoted 0 times
...
Felix
3 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?
upvoted 0 times
...
Tammi
3 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.
upvoted 0 times
...
Deja
3 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.
upvoted 0 times
...

Save Cancel