Difference between revisions of "Merge multiple kubeconfigs"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
== Related == | == Related == | ||
− | * [[date]] | + | * <code>[[date]]: date '+%Y-%m-%d_%H%M'</code> |
== See also == | == See also == | ||
* {{konfig}} | * {{konfig}} | ||
* {{kubeconfig}} | * {{kubeconfig}} |
Revision as of 11:51, 11 October 2023
~/.kube/configs into one using kubectl konfig merge
cp ~/.kube/configs ~/.kube/configs.BAK kubectl konfig merge file1.yml file2.yml > merged_file.yml
for CLUSTER in $(rancher cluster ls | grep -v NAME | cut -d"*" -f2- | awk '{print $3}' ); do rancher cluster kubeconfig $CLUSTER > $CLUSTER.kubeconfig; done
Related
date: date '+%Y-%m-%d_%H%M'
See also
Advertising: