Skip to content

Instantly share code, notes, and snippets.

@Hungsiro506
Created September 8, 2020 10:12
Show Gist options
  • Save Hungsiro506/268a20aaacf121923525c2242b09c583 to your computer and use it in GitHub Desktop.
Save Hungsiro506/268a20aaacf121923525c2242b09c583 to your computer and use it in GitHub Desktop.
#
# Adding new kubectl config to the existing ~/.kube/config
#
export KUBECONFIG=~/.kube/config:new_config_file
kubectl config view --flatten >> /tmp/kube_config
rm ~/.kube/config
cp /tmp/kube_config ~/.kube/config
@Hungsiro506
Copy link
Author

k config get-users k config get-contexts k config get-clusters k config unset clusters.canifa.com k config unset contexts.canifa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment