Skip to content

Instantly share code, notes, and snippets.

@shukra-in-spirit
Created September 8, 2022 19:11
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 shukra-in-spirit/e5bee03f56882acc2006f753dd210183 to your computer and use it in GitHub Desktop.
Save shukra-in-spirit/e5bee03f56882acc2006f753dd210183 to your computer and use it in GitHub Desktop.
k3d important commands

create a high availability cluster

k3d cluster create --kubeconfig-switch-context true --kubeconfig-update-default true --agent 2 --server 2

get the file path of the kubeconfig of a cluster and set it as default

export KUBECONFIG=$(k3d kubeconfig write )

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