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

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

Deeann
3 months 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
3 months 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
3 months 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
Leigha
2 months ago
Agreed, it's a clean and efficient solution for integrating the sidecar container.
upvoted 0 times
...
Gerald
2 months ago
It definitely simplifies the process and keeps everything organized.
upvoted 0 times
...
Kallie
2 months ago
Volumes definitely make it easier to manage shared resources in Kubernetes.
upvoted 0 times
...
Sena
2 months ago
Yes, using a Volume is a common practice for sharing data between containers.
upvoted 0 times
...
Elke
2 months ago
That's a smart way to ensure both containers have access to the log file.
upvoted 0 times
...
Lili
2 months ago
I agree, it keeps things organized and accessible for both containers.
upvoted 0 times
...
Vincenza
3 months ago
Yes, using a Volume to share the log file is a smart approach.
upvoted 0 times
...
...
Tasia
3 months ago
I feel like practicing similar tasks will help in tackling such questions in the exam.
upvoted 0 times
...
Bambi
3 months ago
Yes, understanding the solution step by step is crucial.
upvoted 0 times
...
Clorinda
4 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
3 months ago
Yeah, using busybox for that command is a smart choice.
upvoted 0 times
...
Wilburn
3 months ago
That sidecar container setup looks solid.
upvoted 0 times
...
...
Nidia
4 months ago
I think the key is to carefully read the task and solution provided.
upvoted 0 times
...
Tasia
4 months ago
I agree, it's quite complex.
upvoted 0 times
...
Bambi
4 months ago
I found this question challenging.
upvoted 0 times
...

Save Cancel