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

Actual exam question for Linux Foundation's Certified Kubernetes Administrator exam
Question #: 64
Topic #: 3
[All Certified Kubernetes Administrator 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
2 months ago
The command to tail the log file is on point. I'm glad they didn't overcomplicate it.
upvoted 0 times
...
Sherman
2 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
2 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
12 days ago
User 4: Let's add that sidecar container and find out!
upvoted 0 times
...
Jose
20 days ago
User 3: Maybe we should check the logs and see if there are any coffee-related entries.
upvoted 0 times
...
Elin
27 days ago
User 2: I can imagine the logs now, 'Coffee machine refilled at 9am, best coffee ever!'
upvoted 0 times
...
Layla
1 months ago
User 1: That would be hilarious!
upvoted 0 times
...
...
Eve
2 months ago
Yes, and running the tail command in the sidecar container is crucial for real-time logging.
upvoted 0 times
...
Fernanda
2 months ago
Looks straightforward, the sidecar container is set up correctly to stream the log file.
upvoted 0 times
Sheridan
1 months ago
Yes, it seems like the log streaming setup is working as expected.
upvoted 0 times
...
Herman
1 months ago
Great job! The sidecar container is configured properly.
upvoted 0 times
...
...
Vallie
2 months ago
I think the key is to properly mount the volume for the log file.
upvoted 0 times
...
Lezlie
2 months ago
I agree, setting up a sidecar container can be tricky.
upvoted 0 times
...
Marla
2 months ago
This question seems challenging.
upvoted 0 times
...

Save Cancel