Merge multiple kubeconfigs

From wikieduonline
Revision as of 11:35, 11 October 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search
 ~/.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: