Create a pod with init container which create a file "test.txt" in "workdir" directory. Main container should check a file "test.txt" exists and execute sleep 9999 if the file exists.
Answer(s): A
Create a pod with init container which waits for a service called "myservice" to be created. Once init container completes, the myapp-container should start and print a message "The app is running" and sleep for 3600 seconds.
Create 5 nginx pods in which two of them is labeled env=prod and three of them is labeled env=dev
Get the pods with label env=dev and output the labels
Get the pods with labels env=dev and env=prod and output the labels as well
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.