<p>Documentation says that I need to enter pod, but I can't.</p>
<p><code>sudo kubectl get pods -n kube-system</code> gives me following output:</p>
<pre><code>coredns-66bff467f8-bhwrx                    1/1     Running     4          10h
coredns-66bff467f8-ph2pb                    1/1     Running     4          10h
etcd-ubuntu-xenial                          1/1     Running     3          10h
ingress-nginx-admission-create-mww2h        0/1     Completed   0          4h48m
ingress-nginx-admission-patch-9dklm         0/1     Completed   0          4h48m
ingress-nginx-controller-7bb4c67d67-8nqcw   1/1     Running     1          4h48m
kube-apiserver-ubuntu-xenial                1/1     Running     3          10h
kube-controller-manager-ubuntu-xenial       1/1     Running     3          10h
kube-proxy-hn9qw                            1/1     Running     3          10h
kube-scheduler-ubuntu-xenial                1/1     Running     3          10h
storage-provisioner                         1/1     Running     4          10h
</code></pre>
<p>When I trying to enter <code>sudo kubectl exec ingress-nginx-controller-7bb4c67d67-8nqcw -- /bin/bash/</code> I receive following error:
<code>Error from server (NotFound): pods &quot;ingress-nginx-controller-7bb4c67d67-8nqcw&quot; not found</code></p>
<p>Reason why I'm running everything with sudo is because I'm using <code>vm-dirver=none</code></p>
<p>Reason why I need to know ingress controller version is because I want to use a wildcard in host name to forward multiple subdomains to same service/port. And I know that this feature is available only from ingress controller version 1.18.</p>

Volod
<p>You get that error because you are not passing the namespace parameter (<code>-n kube-system</code>).</p>
<p>And to get the version, you would do this:</p>
<pre><code>kubectl get po ingress-nginx-controller-7bb4c67d67-8nqcw -n kube-system -oyaml | grep -i image:
</code></pre>
