Skip to content

Kubernetes Troubleshooting

  1. Introduction
  2. ImagePullBackOff
  3. CrashLoopBackOff
  4. Failed to Create Pod Sandbox
  5. Terminated with exit code 1 error
  6. Pod in Terminating or Unknown Status
  7. OOM Kills
  8. Pause Container
  9. Preempted Pod
  10. Evited Pods
  11. Stuck Namespace
  12. Access PVC Data without the POD
  13. CoreDNS issues
  14. Debugging Techniques and Strategies. Debugging with ephemeral containers
  15. Troubleshooting Tools
    1. Komodor
    2. Palaemon
    3. cdebug and debug-ctr
    4. kubectl-debug
  16. Slides
  17. Images
  18. Tweets

Introduction

ImagePullBackOff

CrashLoopBackOff

Failed to Create Pod Sandbox

Terminated with exit code 1 error

Pod in Terminating or Unknown Status

OOM Kills

Pause Container

Preempted Pod

Evited Pods

Stuck Namespace

Access PVC Data without the POD

CoreDNS issues

Debugging Techniques and Strategies. Debugging with ephemeral containers

Troubleshooting Tools

  • github.com/replicatedhq/troubleshoot Troubleshoot is a framework for collecting and analyzing diagnostic information about a Kubernetes cluster. The framework is customizable and allows third-party application developers to create troubleshoot specs that can be run by cluster operators.

Komodor

Palaemon

cdebug and debug-ctr

  • iximiuz/cdebug a swiss army knife of container debugging. It’s like “docker exec”, but it works even for containers without a shell (scratch, distroless, slim, etc). The “cdebug exec” command allows you to bring your own toolkit and start a shell inside of a running container.
  • felipecruz91/debug-ctr A commandline tool for interactive troubleshooting when a container has crashed or a container image doesn’t include debugging utilities, such as distroless images. Heavily inspired by kubectl debug, but for containers instead of Pods.

kubectl-debug

  • github.com/JamesTGrant/kubectl-debug kubectl-debug is a tool that lets you debug a target container in a Kubernetes cluster by automatically creating a new, non-invasive, ‘debug’ container in the same PID, network, user, and IPC namespace as the target container without any disruption

Slides

Click to expand!

Images

Click to expand!

learnk8s debug your pods

Tweets

Click to expand!