Hand a log file to a sidecar

Complete the manifest

Difficulty 1 of 3Not solved yet

The app container writes /var/log/app/app.log. The shipper container must read the same file as /logs/app.log. Fill in the blanks so both containers mount one directory that lives exactly as long as the pod.

Your first answer is the one that counts. After a miss you can try again, or ask for the answer.

apiVersion: v1
kind: Pod
metadata:
name: shipper-demo
spec:
containers:
- name: app
image: ghcr.io/kx-labs/web:1.1
volumeMounts:
- name:
mountPath: /var/log/app
- name: shipper
image: busybox:1.37
command: ["sh", "-c", "tail -F /logs/app.log"]
volumeMounts:
- name: logs
mountPath: /logs
readOnly: true
volumes:
- name: logs
: {}