Skip to content

Instantly share code, notes, and snippets.

@jangaraj
Created December 3, 2015 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jangaraj/35f0ab52fd0f199820f4 to your computer and use it in GitHub Desktop.
Save jangaraj/35f0ab52fd0f199820f4 to your computer and use it in GitHub Desktop.
kubectl config set-cluster default-cluster --server=https://master_ip --certificate-authority=ssl/ca.pem
kubectl config set-credentials default-admin --certificate-authority=ssl/ca.pem --client-key=ssl/admin-key.pem --client-certificate=ssl/admin.pem
kubectl config set-context default-system --cluster=default-cluster --user=default-admin
kubectl config use-context default-system
# obviously you need the CA used to bootstrap your cluster and all the certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment