1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

minikubeの後始末(不要なクラスタの設定を削除する)

Posted at

■kubernetsのお試しなどでローカル環境に残っているminikubeクラスタの設定削除する

dockerでk8sクラスタが立てれるようになっていたのでローカルはそちらに移行。
不要な設定が見えているのでkubectxしたときに気になるため削除したい

contextの設定削除

  • contexts設定確認
# kubectl config get-contexts
CURRENT   NAME                                                                      CLUSTER                                                                   AUTHINFO                                                                  NAMESPACE
minikube                                                                  minikube                                                                  minikube                                                                  dashboard
  • contextの設定削除
#kubectl config delete-context minikube
deleted context minikube from /Users/hoge/.kube/config

clusterの削除

  • clustersの設定確認
# kubectl config get-clusters
minikube
  • clusterの削除
# kubectl config delete-cluster minikube
deleted cluster minikube from /Users/hoge/.kube/config

これでスッキリ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?