Difference between revisions of "Merge multiple kubeconfigs"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
− | for CLUSTER in $([[rancher cluster ls]] | + | for CLUSTER in $([[rancher cluster ls]] | grep -v NAME | cut -d"*" -f2- | awk '{print $3}' ); do [[rancher cluster kubeconfig]] $CLUSTER > $CLUSTER.kubeconfig; done |
* {{konfig}} | * {{konfig}} | ||
* {{kubeconfig}} | * {{kubeconfig}} |
Revision as of 11:37, 11 October 2023
~/.kube/configs into one using kubectl konfig merge
for CLUSTER in $(rancher cluster ls | grep -v NAME | cut -d"*" -f2- | awk '{print $3}' ); do rancher cluster kubeconfig $CLUSTER > $CLUSTER.kubeconfig; done
Advertising: