2015-10-03 20:19:50 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Config
|
|
|
|
current-context: kubectl-to-{{ cluster_name }}
|
|
|
|
preferences: {}
|
|
|
|
clusters:
|
|
|
|
- cluster:
|
2015-12-11 10:52:20 +00:00
|
|
|
certificate-authority-data: {{ kube_node_cert|b64encode }}
|
2016-07-22 10:54:38 +00:00
|
|
|
server: https://{{ groups['kube-master'][0] }}:{{ kube_apiserver_port }}
|
2015-10-03 20:19:50 +00:00
|
|
|
name: {{ cluster_name }}
|
|
|
|
contexts:
|
|
|
|
- context:
|
|
|
|
cluster: {{ cluster_name }}
|
|
|
|
user: kubectl
|
|
|
|
name: kubectl-to-{{ cluster_name }}
|
|
|
|
users:
|
|
|
|
- name: kubectl
|
|
|
|
user:
|
|
|
|
token: {{ kubectl_token }}
|