Skip to content

Instantly share code, notes, and snippets.

@mcascone
Created November 9, 2022 18:24
Show Gist options
  • Save mcascone/16d79e68bb6279e1fd660f2c3af52a36 to your computer and use it in GitHub Desktop.
Save mcascone/16d79e68bb6279e1fd660f2c3af52a36 to your computer and use it in GitHub Desktop.
Kubernetes cheat sheet

get cluster .kubeconfig info (server, certs, etc)

strip --context to use current context:

kubectl config view --minify --flatten --context=kind-terraform-learn

host == clusters.cluster.server client_certificate == users.user.client-certificate-data client_key == users.user.client-key-data cluster_ca_certificate == clusters.cluster.certificate-authority-data

Taken from https://developer.hashicorp.com/terraform/tutorials/kubernetes/kubernetes-provider

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