Linux Foundation CKA Exam - Topic 5 Question 85 Discussion
Create a file:/opt/KUCC00302/kucc00302.txt that lists all pods that implement service baz in namespace development.The format of the file should be one pod name per line.
A) Explanation:
solution
Linux Foundation CKA Exam - Topic 5 Question 85 Discussion
Actual exam question for
Linux Foundation's
CKA exam
I remember practicing a similar question where we had to list deployments. I think we might need to use `-o name` or something like that to get just the pod names.
Okay, I think I've got this. I'll use `kubectl get pods -n development --selector=app=baz` to list the pods, then redirect the output to the file at the specified path.
This seems pretty straightforward. I'd use the `kubectl get pods -n development --selector=app=baz -o name` command to get the list of pod names and then write them to the file.
Rosalia
7 months agoLouvenia
8 months agoMari
8 months agoGeorgeanna
8 months agoLynsey
8 months agoJuliann
8 months agoCharolette
9 months agoJutta
9 months agoAugustine
9 months agoLinette
9 months agoLinn
9 months agoReynalda
10 months agoHarrison
10 months agoWalker
10 months agoJettie
1 year agoKristin
1 year agoAntonio
12 months agoEttie
1 year agoBeatriz
1 year agoAlaine
1 year agoTamra
1 year agoAlaine
1 year agoJolanda
1 year agoJuliana
1 year agoMarva
1 year agoWilbert
1 year agoStefan
1 year ago