Re:Show HN: Run a Kubernetes Job and get the logs when it's ...
by alfonmga on Monday September 05, 2022 @05:33PM
(#32729765)
One-shot jobs are one of the reasons why I moved from Kubernetes to Nomad[0]. It feels overengineering absurdity that there is no more straightforward way to do it.
Nowadays, I'm back to Docker Swarm and loving it. It seems you did something similar before for Docker Swarm [1] btw, nice ;-)
If you can see yourself using it, let me know. Try it out.
This is how it's being used in OpenFaaS to help support customers: https://github.com/openfaas/config-checker
A similar and more generic tool from Replicated is: https://github.com/replicatedhq/troubleshoot
And if you wanted to see how easy it is to play around with the K8s API with Go, hopefully this example will give you a bit more confidence to try some hacking.