Create a Pod with three busy box containers with commands "ls; sleep 3600;", "echo Hello World; sleep 3600;" and "echo this is the third container; sleep 3600" respectively and check the status
Answer(s): A
Check logs of each container that "busyboxpod-{1,2,3}"
Create a Pod with main container busybox and which executes this "while true; do echo `Hi I am from Main container' >> /var/log/index.html; sleep 5; done" and with sidecar container with nginx image which exposes on port 80. Use emptyDir Volume and mount this volume on path /var/log for busybox and on path /usr/share/nginx/html for nginx container. Verify both containers are running.
Exec into both containers and verify that main.txt exist and
Create an nginx pod and set an env value as 'var1=val1'. Check the env value existence within the pod
Post your Comments and Discuss Linux Foundation CKA exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the CKA content, but please register or login to continue.