Skip to content

Instantly share code, notes, and snippets.

@gpr
Created November 12, 2020 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpr/26ff11d3bacd5d9f82328e2b90014c4b to your computer and use it in GitHub Desktop.
Save gpr/26ff11d3bacd5d9f82328e2b90014c4b to your computer and use it in GitHub Desktop.
[How to merge kubeconfig files?] Merge several configuration to manage them as context #k8s #kubernetes #kubectl
KUBECONFIG=file1:file2:file3 kubectl config view --merge --flatten > config.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment