From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

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

Managing Pod initialization

Managing Pod initialization

- In this video we'll talk about pod initialization. Now, what is this about? This is about init containers. And, you need them because sometimes preparation is required before running the main container. Then, you use the init container, which is doing its work, and then the main container will start. Init containers run to completion, as it is called. And once completed, the main container can be started. And, you use init containers in any case where preliminary setup is required. You'll see it a lot with different controllers in other external applications that have a complex setup, that first an init container is created before everything else is started. Let me show you. So, the best way to run an init container is to start by the documentation, init container. There is no easy way that you can create an init container from the command line. And in that case, I would suggest that you look up a yaml file. And, this looks like a decent yaml file, let's copy it and paste it. Now…

Contents