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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Troubleshooting Pods that won't fit in the cluster7m 15s
-
(Locked)
Debugging missing Pod tolerations and taints6m 52s
-
(Locked)
Conquering Pods with pending dependencies9m 36s
-
(Locked)
Debugging ImagePullBackOff errors for non-existent images5m 12s
-
(Locked)
Solving network-related ImagePullBackOff errors1m 33s
-
(Locked)
Solving ImagePullBackOff errors related to private registries12m 2s
-
(Locked)
Debugging CrashLoopBackOff errors and crashing Pods8m 39s
-
(Locked)
Debugging failing liveness probes6m 25s
-
(Locked)
Solving failing Pod readiness checks4m 43s
-
(Locked)
Solving slow Pods13m 2s
-
(Locked)
Challenge: A troublemaking deployment1m
-
(Locked)
Solution: A troublemaking deployment7m 7s
-
(Locked)
-
-
-