kubespray/roles/kubernetes/master/templates/kubectl-kubeconfig.yaml.j2

19 lines
415 B
Plaintext
Raw Normal View History

2015-10-04 04:19:50 +08:00
apiVersion: v1
kind: Config
current-context: kubectl-to-{{ cluster_name }}
preferences: {}
clusters:
- cluster:
certificate-authority-data: {{ kube_node_cert|b64encode }}
server: {{ kube_apiserver_endpoint }}
2015-10-04 04:19:50 +08:00
name: {{ cluster_name }}
contexts:
- context:
cluster: {{ cluster_name }}
user: kubectl
name: kubectl-to-{{ cluster_name }}
users:
- name: kubectl
user:
token: {{ kubectl_token }}