BlackFriday 2024! 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 3 Question 64 Discussion

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

Score:7%

Context

An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.

Task

Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:

/bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log

Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Lewis
4 months ago
The command to tail the log file is on point. I'm glad they didn't overcomplicate it.
upvoted 0 times
...
Sherman
4 months ago
This solution is going to be very helpful for troubleshooting and monitoring the big-corp-app pod. Well thought out.
upvoted 0 times
...
Corinne
4 months ago
Haha, I wonder if the big-corp-app is generating log entries about the best coffee in the break room.
upvoted 0 times
German
3 months ago
Let's add that sidecar container and find out!
upvoted 0 times
...
Jose
3 months ago
Maybe we should check the logs and see if there are any coffee-related entries.
upvoted 0 times
...
Elin
3 months ago
I can imagine the logs now, 'Coffee machine refilled at 9am, best coffee ever!'
upvoted 0 times
...
Layla
4 months ago
That would be hilarious!
upvoted 0 times
...
...
Eve
4 months ago
Yes, and running the tail command in the sidecar container is crucial for real-time logging.
upvoted 0 times
...
Fernanda
4 months ago
Looks straightforward, the sidecar container is set up correctly to stream the log file.
upvoted 0 times
Sheridan
3 months ago
Yes, it seems like the log streaming setup is working as expected.
upvoted 0 times
...
Herman
4 months ago
Great job! The sidecar container is configured properly.
upvoted 0 times
...
...
Vallie
4 months ago
I think the key is to properly mount the volume for the log file.
upvoted 0 times
...
Lezlie
4 months ago
I agree, setting up a sidecar container can be tricky.
upvoted 0 times
...
Marla
4 months ago
This question seems challenging.
upvoted 0 times
...

Save Cancel