Today’s oneliner is for merging two kubectl configuration files into one. This can be useful when creating new clusters and exchanging small config files with your colleagues:
mv ~/.kube/config ~/.kube/config.old
kubectl config view --flatten > ~/.kube/config
Note the colon that seperates the filepaths in
KUBECONFIG - you can pass in more than one file.