This technique helps you with debugging running Pods in production.
The Pod is detached from the Service (no traffic), and you can troubleshoot it live.
Let's get started!
At this point, you can debug the Pod live without any traffic interfering with it.
You could use a mix of 𝚔𝚞𝚋𝚎𝚌𝚝𝚕 𝚎𝚡𝚎𝚌, 𝚔𝚞𝚋𝚎𝚌𝚝𝚕 𝚙𝚘𝚛𝚝-𝚏𝚘𝚛𝚠𝚊𝚛𝚍 or 𝚔𝚞𝚋𝚎𝚌𝚝𝚕 𝚍𝚎𝚋𝚞𝚐 to inspect the running process further.
That's it, only 3 easy steps.
Credit for this technique goes to @pjausovec who originally posted it on Reddit:
reddit.com/r/kubernetes/c…
Do you know any clever technique to debug your Pods in production?
Let me know!