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!