Here are a few solid ways to spin up a debug pod in EKS (pick the one that matches what you’re troubleshooting).
1) Quick interactive “Swiss-army” debug pod (recommended)
This gives you an ephemeral pod you can exec into and run tools like curl, dig, nslookup, etc.
# Most clusters:
Inside the pod you can do stuff like:
If your cluster blocks internet pulls, use an image from your own ECR.
2) Debug pod in a specific namespace + service account
Useful when you need the same IAM/RBAC/namespace behavior as an app.
3) Debug from the same node (hostNetwork) to check node/DNS/routing
This makes the pod share the node network namespace (handy for “is the node routing/DNS broken?”).
4) Debug an existing pod with kubectl debug (ephemeral container)
Best when you want to debug without restarting the target pod.
Notes:
-
Requires ephemeral containers enabled on the cluster (most modern EKS versions support it).
-
--targetis the container whose namespaces you want to join.
5) Minimal YAML you can apply (if you prefer manifests)
Apply + exec:

