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

前端 未结 6 929
你的背包
你的背包 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:20

    To dynamically merge multiple config files in you .bashrc:

    export KUBECONFIG=/Users//.kube/config:/Users//.kube/other.config
    source <(kubectl completion bash)
    

    After fresh source, verify:

    kubectl config view
    

提交回复
热议问题