Hugo Future Imperfect Slim

Tech Notes

Linux,MAC,Docker,Kubernetes,
CloudStack,AWS,GCP,AZURE,
Raspberrypi,VMWARE,GO,BOOKS,
NETFLIX,Movies,Seasons

1-Minute Read

Merging kubeconfig files

When you have multiple kubernetes clusters, manually entering to the kubectl config is time consuming and error prone

Add the two config files to the env var export KUBECONFIG=~/.kube/config:~/Desktop/configFile2.yaml

Review that you have two configurations in one view

kubectl config view

View the raw config and output to a new file

kubectl config view –raw > test.yaml

cp test.yaml .kube/config

env

you can unset the KUBECONFIG later on

unset KUBECONFIG

comments powered by Disqus

Recent Posts

Categories

About

I am a Software Engineer at Persistent Systems, working on Cloud Stack Orchestration and various tech related to Cloud Infra, container technology like Docker, Kubernetes