Hi, i hope I’m not on the wrong channel to write this here.
I follow 100 Days of Devops program
on task/day 55 I had done according to what was asked, but it was still marked failed. can the Kodecloud team help me confirm this?
Hi, i hope I’m not on the wrong channel to write this here.
I follow 100 Days of Devops program
on task/day 55 I had done according to what was asked, but it was still marked failed. can the Kodecloud team help me confirm this?
The AI response at point 17 you’ve shared is wrong.
refer to the official docs for more information on sidecar-containers
The sidecar container needs to be in initContainers with restartPpolicy: Always set:
containers:
- name: nginx-container
image: nginx:latest
volumeMounts:
- name: shared-logs
mountPath: /var/log/nginx
initContainers: # <-- This makes it a sidecar container
- name: sidecar-container
image: ubuntu:latest
restartPolicy: Always # <-- This keeps the container running with the main con