How to merge kubectl config file with ~/.kube/config?

前端 未结 6 936
你的背包
你的背包 2020-12-07 16:27

Is there a simple kubectl command to take a kubeconfig file (that contains a cluster+context+user) and merge it into the ~/.kube/config file as an

6条回答
  •  没有蜡笔的小新
    2020-12-07 17:16

    Do this:

    export KUBECONFIG=~/.kube/config:~/someotherconfig 
    kubectl config view --flatten
    

    You can then pipe that out to a new file if needed.

提交回复
热议问题