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 2 Question 66 Discussion

Actual exam question for Linux Foundation's Certified Kubernetes Administrator exam
Question #: 66
Topic #: 2
[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:

Deeann
21 days ago
The step-by-step solution provided is very clear and easy to follow. I'm confident I could implement this in a real-world scenario.
upvoted 0 times
...
Kris
22 days ago
Haha, the pod name 'big-corp-app' makes me chuckle. I wonder if they have a 'small-startup-app' somewhere as well.
upvoted 0 times
...
Caprice
23 days ago
I like how the volume is used to make the log file accessible to both the main container and the sidecar. It's a clean and straightforward solution.
upvoted 0 times
Vincenza
8 days ago
Yes, using a Volume to share the log file is a smart approach.
upvoted 0 times
...
...
Tasia
1 months ago
I feel like practicing similar tasks will help in tackling such questions in the exam.
upvoted 0 times
...
Bambi
1 months ago
Yes, understanding the solution step by step is crucial.
upvoted 0 times
...
Clorinda
1 months ago
The sidecar container using the busybox image is a great way to integrate the existing pod with the Kubernetes logging architecture. The command to tail the log file and make it available to kubectl logs is spot on.
upvoted 0 times
Graham
16 days ago
Yeah, using busybox for that command is a smart choice.
upvoted 0 times
...
Wilburn
26 days ago
That sidecar container setup looks solid.
upvoted 0 times
...
...
Nidia
1 months ago
I think the key is to carefully read the task and solution provided.
upvoted 0 times
...
Tasia
1 months ago
I agree, it's quite complex.
upvoted 0 times
...
Bambi
2 months ago
I found this question challenging.
upvoted 0 times
...

Save Cancel