0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[メモ]新しいkubeconfigを追加するときに使うと便利なシェル

Posted at

新しいkubeconfigがあるファイルのところに移動して、下記を実行

export KUBECONFIG=${HOME}/.kube/config
export KUBECONFIG=${KUBECONFIG}:$(pwd)/<YOUR_NEW_KUBE_CONFIG_FILENAME>

mkdir -p ~/.kube
kubectl config view --flatten > ~/.kube/config.new
mv ~/.kube/config ~/.kube/config.bak
mv ~/.kube/config.new ~/.kube/config
export KUBECONFIG=${HOME}/.kube/config
chmod go-r ~/.kube/config
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?