

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Deployments
incomplete
2: Replica Sets
incomplete
3: YAML Config
incomplete
4: API Service
incomplete
5: Thrashing Pods
incomplete
This lesson's interactive features are locked, please to keep using them
One of the most common problems you'll run into when working with Kubernetes is Pods that keep crashing and restarting. This is called "thrashing" and it's usually caused by one of a few things:
When a pod's status is CrashLoopBackoff, that means the container is crashing (the program is exiting with error code 1).
Because Kubernetes is all about building self-healing systems, it will automatically restart the container. However, each time it tries to restart the container, if it crashes again, it will wait longer and longer in between restarts. That's why it's called a "backoff".
To fix a thrashing pod, you need to find out why it's crashing. We'll do that in a later lesson.