Skip to content

Instantly share code, notes, and snippets.

@meysam81
Last active January 27, 2024 09:30
Show Gist options
  • Save meysam81/29a9444f9c14e9d53e1039c5ab77d9cf to your computer and use it in GitHub Desktop.
Save meysam81/29a9444f9c14e9d53e1039c5ab77d9cf to your computer and use it in GitHub Desktop.
The KubeConfig template to be used by each component to talk to the Kubernetes API server
apiVersion: v1
clusters:
- cluster:
certificate-authority: {{ ca_cert_path }}
server: https://{{ apiserver_ip }}:{{ apiserver_port | default(6443) }}
name: {{ kube_context }}
contexts:
- context:
cluster: {{ kube_context }}
user: {{ kube_context }}
name: {{ kube_context }}
current-context: {{ kube_context }}
kind: Config
preferences: {}
users:
- name: {{ kube_context }}
user:
client-certificate: {{ client_cert_path }}
client-key: {{ client_key_path }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment