From 52d8f5e19be32d9474d83302a3ec1968cfbc49f8 Mon Sep 17 00:00:00 2001 From: MengZeLee Date: Wed, 3 Apr 2019 00:16:59 +0800 Subject: [PATCH] patch-reset When we reset cluster, the program does not automatically delete it ($HOME/.kube/config). We should prompt the user how to checkt --- cmd/kubeadm/app/cmd/reset.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/cmd/reset.go b/cmd/kubeadm/app/cmd/reset.go index 4f450ad313c..28fc338c42a 100644 --- a/cmd/kubeadm/app/cmd/reset.go +++ b/cmd/kubeadm/app/cmd/reset.go @@ -217,7 +217,9 @@ func (r *Reset) Run(out io.Writer, client clientset.Interface, cfg *kubeadmapi.I If your cluster was setup to utilize IPVS, run ipvsadm --clear (or similar) to reset your system's IPVS tables. - + + The reset process does not clean your kubeconfig files and you must remove them manually. + Please, check the contents of the $HOME/.kube/config file. `) fmt.Print(msg)