From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Init containers

Init containers

- Let's talk about the init containers. An init container is a special case of a multi-container Pod where the init container runs to completion before the main container is started. And starting the main container depends on the success of the init container. If the init container fails, the main container will never start. Let me show you. Okay, so I want to demonstrate how to create an init container, but in order to do so, I want to use the documentation because the documentation is what you are going to use on the exam as well. So in the Kubernetes documentation, I'm looking for init container and that is searching. And then we see init containers, we also see configure Pod initialization. I can tell you on the exam what you need is always the first or the second entry. And in fact, I feel good about configure Pod initialization. So let's check it out and look at that. Create a Pod that has an init container. And you know what I'm going to do? I am not even going to read it. I'm…

Contents