2019-05-08 20:38:36 +00:00
|
|
|
---
|
2015-12-11 10:32:13 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Config
|
|
|
|
clusters:
|
|
|
|
- name: local
|
|
|
|
cluster:
|
|
|
|
certificate-authority: {{ kube_cert_dir }}/ca.pem
|
2016-10-06 15:42:33 +00:00
|
|
|
server: {{ kube_apiserver_endpoint }}
|
2015-12-11 10:32:13 +00:00
|
|
|
users:
|
|
|
|
- name: kubelet
|
|
|
|
user:
|
2016-12-27 11:02:45 +00:00
|
|
|
client-certificate: {{ kube_cert_dir }}/node-{{ inventory_hostname }}.pem
|
|
|
|
client-key: {{ kube_cert_dir }}/node-{{ inventory_hostname }}-key.pem
|
2015-12-11 10:32:13 +00:00
|
|
|
contexts:
|
|
|
|
- context:
|
|
|
|
cluster: local
|
|
|
|
user: kubelet
|
|
|
|
name: kubelet-{{ cluster_name }}
|
|
|
|
current-context: kubelet-{{ cluster_name }}
|