- All Courses
- Kubernetes for Application Developers
- Operating and Debugging
- A kubectl debugging workflow
Lesson 4.2
A kubectl debugging workflow
Work outside in: is the pod running, is it ready, does the service have endpoints, does the ingress route to it.
49mIntermediate5.9k students
Overview
Narrow it down in a fixed order
Work outside in: is the pod running, is it ready, does the service have endpoints, does the ingress route to it. Each step eliminates a layer, which beats guessing.
Port-forwarding straight to a pod bypasses the service and ingress entirely. If the application answers there, your problem is in the routing layers, not the code.
Minimal images with no shell are exactly the case ephemeral debug containers exist for: attach a container with tools into the running pod namespace without rebuilding the image.
In this lesson you will:
- Work from cluster state down to the process
- Port-forward to test a service directly
- Debug a container that has no shell
Resources
Notes are not saved yet — they clear when you leave this page.
Previous Lesson
Reading logs and events
5m
Packaging with Helm
14m