How to ssh into the container running the traefik controller?

How do I ssh into the traefik container ?

I tried:

  • kubectl exec -it POD_NAME bash
  • kubectl exec -it POD_NAME sh
  • kubectl exec -it POD_NAME -- '/bin/bash/
  • kubectl exec -it POD_NAME -- '/bin/sh/

Even kubectl exec -it POD_NAME -- 'ls' doesn't work.

You cannot using this image, it simply does not have bash or sh or ls it's really lightweight. If you want an OS run the alpine-based one.

The Alpine image worked great, thank you!

Okay, that also seems to be the case with (at least) the latest K3s release with Traefik. One cannot bash into the pod. Question then: how would one then add a new entrypoint (e.g. a TCP), if you cannot apply the CLI commands? Deinstall Traefik and apply the alpine-based image?

Via configuration, I would imagine