kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv

In implementation:

kubectl apply -f kubernetes-dashboard.yaml

report errors

Error from server (AlreadyExists): error when creating “kubernetes- dashboard.yaml “: services “kubernetes-dashboard” already exist

The preliminary judgment is that there is, and the dashboard already exists

use:

kubectl get pod --all-namespaces 

It is found that there is an abnormal imagepullbackoff

Then use

kubectl delete -f kubernetes-dashboard.yaml 

Delete

OK, finish

Read More: