1 2 3
#!/bin/sh cp $HOME/.kube/config /tmp/.kube_config KUBECONFIG=$1:/tmp/.kube_config kubectl config view --flatten > $HOME/.kube/config