From the course: Debugging Kubernetes

Unlock this course with a free trial

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

Solution: A troublemaking deployment

Solution: A troublemaking deployment - Kubernetes Tutorial

From the course: Debugging Kubernetes

Solution: A troublemaking deployment

(bright music) - [Instructor] Congrats on finishing the challenge. Let's go through how to deploy this application together. First things first, let's run kubectl get pods --show-labels. The first thing that you should have noticed is that the pod is, A, part of a deployment through this pod-template-hash label here and B, that the pod is either in an ErrImagePull or in an ImagePullBackOff state. This is a great time to use many whys. So let's start with our first why. Why is this in an ImagePullBackOff or in an ErrImagePull state? Let's run kubectl describe pod -l app=test-app to find out why. Now, we could have also copied the name of the pod and replaced it here, where I have -l app=test-app. However, I find it easier to just use selectors in this case. Since ImagePullBackOffs are back-offs that are related to pulling images, let's see what the images in this container are doing. If we scroll up, we can see the two containers in this pod: container and container-2. We can also see…

Contents