Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKA Topic 5 Question 85 Discussion

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

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.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Jettie
7 days ago
Haha, this reminds me of that time I accidentally deleted the entire 'development' namespace. Not making that mistake again!
upvoted 0 times
...
Kristin
10 days ago
Ah, I see. So we need to create a file with the list of pods that implement the 'baz' service in the 'development' namespace. Sounds good, I'm on it!
upvoted 0 times
...
Alaine
21 days ago
That's a good idea. We can then redirect the output to a file in the specified format.
upvoted 0 times
...
Tamra
25 days ago
Yes, we can use the kubectl command to get the pods and then filter by service.
upvoted 0 times
...
Alaine
27 days ago
I think we need to create a file listing pods implementing service baz in namespace development.
upvoted 0 times
...
Jolanda
1 months ago
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.
upvoted 0 times
Juliana
6 days ago
After creating the file, you can verify its contents with `cat /opt/KUCC00302/kucc00302.txt`.
upvoted 0 times
...
Marva
19 days ago
Don't forget to specify the full path to the file when redirecting the output.
upvoted 0 times
...
Wilbert
20 days ago
You can also use the `awk` command to extract just the pod names from the output.
upvoted 0 times
...
Stefan
25 days ago
That's a good approach. Make sure to redirect the output to the file using `>`.
upvoted 0 times
...
...

Save Cancel