Sometimes you just need a container that keeps shell running in a kubernetes cluster. It's very handy to debug or to open an ssh tunnel into the container network.
Unfortunately, the ubtuntu
or busybox
contianers from Docker Hub exit, but this little trick starts the container with a never-ending, ye low CPU consumption tail -f
.
Now you can kubectl exec -it
into the container, which always maintains context.
---