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
9 months agoLouvenia
9 months agoMari
9 months agoGeorgeanna
10 months agoLynsey
10 months agoJuliann
10 months agoCharolette
10 months agoJutta
10 months agoAugustine
11 months agoLinette
11 months agoLinn
11 months agoReynalda
11 months agoHarrison
11 months agoWalker
11 months agoJettie
1 year agoKristin
1 year agoAntonio
1 year 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