删除kubernetes dashboard

// 查询pod 
kubectl get pods --all-namespaces | grep "dashboard"
// 删除pod
kubectl delete deployment kubernetes-dashboard  --namespace=kubernetes-dashboard
kubectl delete deployment dashboard-metrics-scraper --namespace=kubernetes-dashboard

// 查询service

kubectl get service -A
// 删除service
 kubectl delete service kubernetes-dashboard  --namespace=kubernetes-dashboard
 kubectl delete service dashboard-metrics-scraper  --namespace=kubernetes-dashboard
 // 删除账户和密钥
kubectl delete sa kubernetes-dashboard --namespace=kubernetes-dashboard
kubectl delete secret kubernetes-dashboard-certs --namespace=kubernetes-dashboard
kubectl delete secret kubernetes-dashboard-key-holder --namespace=kubernetes-dashboard
posted @ 2020-09-01 16:33  危杨益  阅读(426)  评论(0编辑  收藏
危杨益