Debug kubernetes app with gdb

1,017 views
Skip to first unread message

Gianluca Arbezzano

unread,
Aug 17, 2018, 4:11:19 AM8/17/18
to kubernete...@googlegroups.com
Hello!
I am writing a talk about debugging go application with kubernetes. I would like to know more about how do you do that. If you have some strategy to collect and manage core dumps or how do you use gdb or delve on kubernetes

Thanks 

Matt Farina

unread,
Aug 21, 2018, 10:06:37 AM8/21/18
to kubernetes-sig-apps
On June 16th we had a demo of debugging an app running in a container via Draft. The video from that meeting is on YouTube.

This is the method that comes to mind off the top of my head. Others may have an idea what to do.

Matthew Fisher

unread,
Aug 28, 2018, 12:55:03 PM8/28/18
to Matt Farina, kubernetes-sig-apps, Radu Matei

Radu Matei also wrote a fantastic blog post on this subject that may be of interest to you. The blog post distills some of the approaches we’ve taken with Draft and the VSCode extension, but the blog post’s material applies to the current state of debugging containers in Kubernetes: https://radu-matei.com/blog/state-of-debugging-microservices-on-k8s/

 

Matt

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-...@googlegroups.com.
To post to this group, send email to kubernete...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-apps/9325f952-3e78-42dd-9915-48045c845331%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Bryant

unread,
Aug 28, 2018, 2:30:16 PM8/28/18
to kubernetes-sig-apps

The Weaveworks team have also created an interesting blog post on the subject of debugging service in k8s too: https://www.weave.works/blog/debugging-microservices-squash-vs-telepresence

Although this is Java focused, I did create some documentation and a YouTube video on how to live debug a service via IntelliJ IDEA that is running locally but with traffic proxied to and from the remote cluster: https://www.telepresence.io/tutorials/intellij

As a disclaimer, I'm working with Datawire (who steward the CNCF-hosted Telepresence tool), but let me know if I can help at all.

Best wishes,

Daniel

Reply all
Reply to author
Forward
0 new messages