<p>I print all of my Pods with:</p>
<pre><code>$ kubectl get pods --all-namespaces
</code></pre>
<p>and the output is:</p>
<pre><code>NAMESPACE             NAME                                                  READY   STATUS    RESTARTS   AGE  
calico-system         calico-kube-controllers-7487d7f956-hx4fp              1/1     Running   0          88m  
calico-system         calico-node-vn52p                                     1/1     Running   0          88m  
calico-system         calico-typha-7588984c44-m6tsz                         1/1     Running   0          88m  
gitlab-managed-apps   install-ingress                                       0/1     Error     0          14m********  
gitlab-managed-apps   install-prometheus                                    0/1     Error     0          12m  
kube-system           coredns-f9fd979d6-2n2pg                               1/1     Running   0          91m  
kube-system           coredns-f9fd979d6-sq9bl                               1/1     Running   0          91m  
kube-system           etcd-tuoputuo-iamnotstone-server                      1/1     Running   0          91m  
kube-system           kube-apiserver-tuoputuo-iamnotstone-server            1/1     Running   0          91m  
kube-system           kube-controller-manager-tuoputuo-iamnotstone-server   1/1     Running   0          91m  
kube-system           kube-proxy-87jkr                                      1/1     Running   0          91m  
kube-system           kube-scheduler-tuoputuo-iamnotstone-server            1/1     Running   0          91m  
tigera-operator       tigera-operator-58f56c4958-4x9tp                      1/1     Running   0          89m  
</code></pre>
<p>But when I execute the logs command:</p>
<pre><code>$ kubectl logs -f install-ingress
</code></pre>
<p>I see this error</p>
<pre><code>Error from server (NotFound): pods &quot;install-ingress&quot; not found
</code></pre>

欧阳维杰
<p>The <code>install-ingress</code> pod is in <code>gitlab-managed-apps</code> namespace. If you do not specify namespace in the <code>kubectl</code> command then it will search for the pod in <strong>default namespace</strong> where the <code>install-ingress</code> pod is not present.</p>
<p>Could you try below command (specifying the namespace of the pod).</p>
<pre><code>kubectl logs -f install-ingress -n gitlab-managed-apps
</code></pre>
