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
6 months agoLouvenia
6 months agoMari
6 months agoGeorgeanna
7 months agoLynsey
7 months agoJuliann
7 months agoCharolette
7 months agoJutta
7 months agoAugustine
8 months agoLinette
8 months agoLinn
8 months agoReynalda
8 months agoHarrison
8 months agoWalker
8 months agoJettie
11 months agoKristin
11 months agoAntonio
10 months agoEttie
11 months agoBeatriz
11 months agoAlaine
12 months agoTamra
12 months agoAlaine
1 year agoJolanda
1 year agoJuliana
11 months agoMarva
12 months agoWilbert
12 months agoStefan
12 months ago