In this section, we will troubleshoot problems related to pods stuck in Pending, ImagePullBackOff, or CrashLoopBackOff states. You will learn how to inspect and debug pods that are having deployment problems in Kubernetes.
Getting ready
Make sure you have a Kubernetes cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is further divided into the following subsections to make the process easier:
- Inspecting pods in Pending status
- Inspecting pods in ImagePullBackOff status
- Inspecting pods in CrashLoopBackOff status
Inspecting pods in Pending status
When you deploy applications on Kubernetes, it is inevitable that soon or later you will need to get more information on your application. In this recipe, we will learn to inspect common pods problem of pods stuck in Pending status:
- In the /src/chapter8 folder, inspect the content of the mongo-sc.yaml file and deploy it running the following command. The deployment...