Solutions to practice test - init-containers
Identify the pod that has an initContainer configured.
What is the image used by the initContainer on the blue pod?
Run the command kubectl describe pod blue and check the state field of the initContainer.
Check the reason field of the initContainer
Run the command kubectl describe pod purple
Run the kubectl describe pod purple command and look at the container state
Check the commands used in the initContainers. The first one sleeps for 600 seconds (10 minutes) and the second one sleeps for 1200 seconds (20 minutes)
Update the pod red to use an initContainer that uses the busybox image and sleeps for 20 seconds
Update the red.yaml with sleep 20 seconds
Check the command used by the initContainer. Looks like there is a type in sleep command. Fix it, it should be sleep 2
not sleeeep 2
</details>