<p>I'm trying to exec into haproxy-ingress pod created from <a href="https://quay.io/jcmoraisjr/haproxy-ingress" rel="nofollow noreferrer">this</a> image, with this command:</p>

<p><code>kubectl -n kube-system exec -it haproxy-ingress-4122301161-bcd94 /bin/bash</code> </p>

<p>Then I get this message </p>

<blockquote>
  <p>rpc error: code = 13 desc = invalid header field value "oci runtime
  error: exec failed: container_linux.go:247: starting container process
  caused \"exec: \\"/bin/bash\\": stat /bin/bash: no such file or
  directory\"\n"</p>
</blockquote>

<p>Is there a way to exec into a container that is created using an image that does not have bash pre-installed?</p>

<p>Yes, it's not that uncommon for container not to have bash available. Often you will find that when bash is not there, <code>/bin/sh</code> still is, as is the case for the image you mention. Thus using <code>kubectl -n kube-system exec -it haproxy-ingress-4122301161-bcd94 /bin/sh</code> should suffice.</p>

<p>That aside, please mind for sake of clarity, you do not SSH into container, you execute a process within it.</p>
