Task 8
Edit the pod to add a sidecar container to send logs to Elastic Search. Mount the log volume to the sidecar container.
Only add a new container. Do not modify anything else. Use the spec provided below.
The 2nd container sidecar is added successfully using below snippets and running well, but it just fails checks. Can someone pls validate the lab provisioned?
- name: sidecar
image: kodekloud/filebeat-configured
volumeMounts:
- mountPath: /var/log/event-simulator/
name: log-volume
controlplane ~ ➜ k get pod
NAME READY STATUS RESTARTS AGE
app 2/2 Running 0 84s
The results of running checks:
v Name: app
× Container Name: sidecar
× Container Image: kodekloud/filebeat-configured
× Volume Mount: log-volume
× Mount Path: /var/log/event-simulator/
v Existing Container Name: app
Existing Container Image: kodekloud/event-simulator