QuestionQ7

VerifiedStorage

SIMULATION -

Context -

An existing Pod must be integrated with Kubernetes built-in logging, such as kubectl logs. Adding a streaming sidecar container is a common way to meet this requirement.

Task -

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

Question Image

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

Question Image

Question Image

Community Discussion

No comments yet. Be the first to start the discussion!