2015-10-03 20:19:50 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Config
|
|
|
|
current-context: kubelet-to-{{ cluster_name }}
|
|
|
|
preferences: {}
|
|
|
|
clusters:
|
|
|
|
- cluster:
|
|
|
|
certificate-authority: {{ kube_cert_dir }}/ca.crt
|
2015-11-01 10:12:12 +00:00
|
|
|
server: https://{{ groups['kube-master'][0] }}:{{kube_master_port}}
|
2015-10-03 20:19:50 +00:00
|
|
|
name: {{ cluster_name }}
|
|
|
|
contexts:
|
|
|
|
- context:
|
|
|
|
cluster: {{ cluster_name }}
|
|
|
|
user: kubelet
|
|
|
|
name: kubelet-to-{{ cluster_name }}
|
|
|
|
users:
|
|
|
|
- name: kubelet
|
|
|
|
user:
|
|
|
|
token: {{ kubelet_token }}
|