News for hackers. Stuff that matters.
Re:Tips for Debugging Kubernetes CrashLoopBackOff by koblinski on Tuesday January 26, 2021 @11:57AM (#25918165)
"Always remember to write down the steps taken to get the container working."

Hahaha, I want to highlight this, underscore it, and blow it up. Seriously. Writing down your debugging steps is crucial but it's not the first thing you think to do and you kick yourself later for not doing it.

Re:Tips for Debugging Kubernetes CrashLoopBackOff by dr-smooth on Tuesday January 26, 2021 @12:41PM (#25918817)
I wrote this plugin to quickly diagnose pods that fail to start:

https://github.com/jpriebe/kubectl-dpod

It gives you container-level info, pod events, and logs from failed containers all in one quick view.

Re:Tips for Debugging Kubernetes CrashLoopBackOff by dgiffin on Tuesday January 26, 2021 @12:44PM (#25918848)
Very cool! I'll add this tool to the article
Re:Tips for Debugging Kubernetes CrashLoopBackOff by todd3834 on Tuesday January 26, 2021 @12:45PM (#25918859)
I love the debug script at the end. I can't tell you how many times I've manually installed vim and lsof when troubleshooting an issue.

> https://raw.githubusercontent.com/releaseapp-io/container-de...

I was a heavy user of k8s at a previous company. They had a very talented and decently sized devops team. They made my life as a customer very easy, so much so that I assumed I could just spin up k8s on my own for a side project. I was surprised how much work it was to get something online.

Re:Tips for Debugging Kubernetes CrashLoopBackOff by un1crom on Tuesday January 26, 2021 @12:14PM (#25918416)
whats old is new again!

kube and dockerz have been huge for scaling apps but also have given us a new layer of opacity.

debugging and debugging tools are always The Coolest.

this isn’t a sexy stuff but eventually everyone runs into crashloop.

thanks for write up.

Re:Tips for Debugging Kubernetes CrashLoopBackOff by dgiffin on Tuesday January 26, 2021 @12:24PM (#25918573)
Kubernetes is hard, it's the simple stuff that we all need to know
Re:Tips for Debugging Kubernetes CrashLoopBackOff by koblinski on Tuesday January 26, 2021 @12:19PM (#25918492)
True. You can't remove the complexity, you just move it to another layer. This is great... until the thing isn't working, then you have to debug on a whole different layer, in a completely different kind of way.
Re:Tips for Debugging Kubernetes CrashLoopBackOff by dgiffin on Tuesday January 26, 2021 @12:25PM (#25918600)
Debugging is truly an art