docker – Error from server (NotFound): pods “weave-net-k4zl7” not found – error comes when I do kubectl edit pod

vagrant@kmaster01:~$ kubectl get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
default nginx 0/1 Pending 0 13h
default nginx-7854ff8877-75tz8 0/1 Pending 0 13h
kube-system coredns-cb4cb8fc6-bpznf 1/1 Running 0 16h
kube-system coredns-cb4cb8fc6-zf2ps 1/1 Running 0 16h
kube-system etcd-kmaster01 1/1 Running 0 16h
kube-system kube-apiserver-kmaster01 1/1 Running 0 16h
kube-system kube-controller-manager-kmaster01 1/1 Running 0 16h
kube-system kube-proxy-kq4qw 1/1 Running 0 16h
kube-system kube-scheduler-kmaster01 1/1 Running 0 16h
kube-system weave-net-k4zl7 2/2 Running 0 13h
vagrant@kmaster01:~$ kubectl edit pod weave-net-k4zl7
**Error from server (NotFound): pods “weave-net-k4zl7” not found **

how to solve the error

Read more here: Source link