system中删除Kubernetes仪表板

system中删除Kubernetes仪表板

本文介绍了如何从kube-system中删除Kubernetes仪表板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从Minikube中删除kubernetes-dashboard.我尝试多次删除部署"deployment.apps/kubernetes-dashboard".但是它会在几秒钟内自动重新创建.

I can not remove kubernetes-dashboard from Minikube. I tried deleting the deployment "deployment.apps/kubernetes-dashboard" multiple times. But it gets recreated automatically in a few seconds.

我正在使用以下命令删除部署:

I am using the following command to delete the deployment:

我什至试图通过将副本数设置为零来编辑部署.但即使在几秒钟后,它也会自动重置.

I even tried to edit the deployment by setting the replica count to zero. But even it gets reset automatically after a few seconds.

在kube系统中部署nginx-ingress也会发生同样的事情.

The same thing happens for nginx-ingress deployment in kube-system.

推荐答案

我必须先使用minikube禁用仪表板插件.然后删除部署确实对我有用.

I had to disable the dashboard addon using minikube first. Then deleting the deployment did work for me.

minikube addons disable dashboard

如果有进入,则:

minikube addons disable ingress

这篇关于如何从kube-system中删除Kubernetes仪表板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 21:58