# How to ssh into the container running the traefik controller?

**URL:** <https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862>\
**Category:** Traefik v1\
**Tags:** kubernetes-ingress\
**Created:** [July 11, 2019, 2:37pm UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862 "2019-07-11T14:37:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bedi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bedi/32/6059_2.png) [@bedi](https://community.traefik.io/u/bedi)\
**Post date:** [July 11, 2019, 2:37pm UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862/1 "2019-07-11T14:37:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [July 11, 2019, 8:03pm UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862/2 "2019-07-11T20:03:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bedi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bedi/32/6059_2.png) [@bedi](https://community.traefik.io/u/bedi)\
**Post date:** [July 16, 2019, 2:52am UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862/3 "2019-07-16T02:52:51Z")

</div>

The Alpine image worked great, thank you!

---

<div class="post-metadata">

**Author:** ![svabra](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@svabra](https://community.traefik.io/u/svabra)\
**Post date:** [March 8, 2023, 5:17pm UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862/4 "2023-03-08T17:17:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [April 26, 2023, 4:37am UTC](https://community.traefik.io/t/how-to-ssh-into-the-container-running-the-traefik-controller/862/5 "2023-04-26T04:37:56Z")

</div>

Via configuration, I would imagine
