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

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Managing application initialization

Managing application initialization

- So the next task is managing application initialization. So the assignment was to create a deployment with the name lab124deploy, which runs the Nginx image, but waits 30 seconds before starting the actual Pod. So this assignment is all about an init Pod, and init Pod, well, that is something that you can easily obtain from the documentation. So let's go to the documentation, and let's look up init Pod. And there we go, Init Container. Yeah, that's right, init container, that's the appropriate name. It's not an init Pod. Sorry for that. So here you can see what it looks like. And this is the Pod specification. So I'm just going to copy the Pod specification because that makes it easier to put it in the application that I want to run. So create a deployment with the name lab124deploy, which runs the Nginx image. That will be kubectl create deploy, right? But wait 30 seconds before starting the actual Pod. So we need to run Nginx, and we need to run BusyBox as an init container. So…

Contents