Follow

Finding out I can't debug Go binaries on OpenShift without modifying scc's (Security Context Constraints) is kind of saddening.

I was really looking forward to using this workflow:

1. `oc debug <pod name>` to spin up a debug pod
2. `oc exec -it <pod> -- dlv debug --headless --listen :2345` to start the debugger on port 2345
3. `oc port-forward <pod> 2345` to forward a port
4. `dlv connect localhost:2345` to debug!

It's all just to do with the way docker handles permissions, so it's not surprising. But was a fun exercise nonetheless!

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
lindgren.tech blog

the private lindgren.tech micro-blog mastodon instance