<p>I am using GKE. I've launched the following traefik deployment through kubectl:</p>

<p><a href="https://github.com/containous/traefik/blob/master/examples/k8s/traefik-deployment.yaml" rel="nofollow noreferrer">https://github.com/containous/traefik/blob/master/examples/k8s/traefik-deployment.yaml</a></p>

<p>The pod runs on the kube-system namespace.
I'm not able to ssh into the pod. </p>

<p><code>kubectl get po -n kube-system
traefik-ingress-controller-5bf599f65d-fl9gx   1/1     Running   0    30m</code></p>

<p><code>kubectl exec -it traefik-ingress-controller-5bf599f65d-fl9gx -n kube-system -- '\bin\bash'
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"\\\\bin\\\\bash\": executable file not found in $PATH"
command terminated with exit code 126</code></p>

<p>Am I missing something? The same thing for '-- sh' too.</p>

<p>rather use forward slashed <code>/</code> (your example has a backslash) such as in</p>

<pre><code>kubectl exec -it traefik-ingress-controller-5bf599f65d-fl9gx -n kube-system -- '/bin/bash'
</code></pre>

<p>If this does still not work, try a different shell such as</p>

<pre><code>kubectl exec -it traefik-ingress-controller-5bf599f65d-fl9gx -n kube-system -- '/bin/sh'
</code></pre>
