<p>I installed kubernetes dashboard ui , but the status is aways pending. Now I want to delete the pending pod . Query current pod:</p>

<pre><code>[root@iZuf63refzweg1d9dh94t8Z ~]# kubectl get pods --all-namespaces
NAMESPACE     NAME                                    READY   STATUS    RESTARTS   AGE
kube-system   kubernetes-dashboard-7d75c474bb-b2lwd   0/1     Pending   0          8d
</code></pre>

<p>now I am trying to delete pod:</p>

<pre><code>[root@iZuf63refzweg1d9dh94t8Z ~]# kubectl delete pod kubernetes-dashboard-7d75c474bb-b2lwd
Error from server (NotFound): pods "kubernetes-dashboard-7d75c474bb-b2lwd" not found
</code></pre>

<p>how to delete kubernetes dashboard pod?</p>

Dolphin
<p>You should either specify the namespace with your kubectl delete command or set the namespace context before executing the command.</p>

<pre><code>kubectl config set-context --current --namespace=kube-system
kubectl delete pod kubernetes-dashboard-7d75c474bb-b2lwd
</code></pre>
