@mmumshad @Tej-Singh-Rana @kodekloud-support3
Strange message error!!! please see below. Worked as expected,but marked failed!!!
sorry for inconvenience this is marked success for you
Can you please check mine also?
Yesterday I did this task âKubernetes Sidecar Containersâ correctly, but it says error as âContainer ânginx-containerâ not found under webserver Podâ.
Can you please check on that.
Can you share your yaml file? or any image so I can look into. Validation checks only done by KKE team. Else you have to wait for the response.
@Surendar
Both containers should be defined under single âContainersâ block,
Because you have used two Containers block , it is failing i think
Hi @Surendar
You have used the containers block multiple times. In a single resource it shouldnât be used more then once. Otherwise it will only run one block and thus all the containers will not be initiated.
If only you would have checked below you would have seen that with your resource it would be one container running instead of two something like below :
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
webserver **1/1** Running 0 4m20s
@Surendar, you have not deployed sidecar-container as sidecar container, you should have deployed it like
spec:
containers:
- name: c1
image: debian
- name: c2
image: nginx