2017-06-15 10:15:52 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Config
|
|
|
|
clusters:
|
|
|
|
- name: local
|
|
|
|
cluster:
|
|
|
|
certificate-authority: {{ kube_cert_dir }}/ca.pem
|
|
|
|
server: {{ kube_apiserver_endpoint }}
|
|
|
|
users:
|
|
|
|
- name: kube-proxy
|
|
|
|
user:
|
2017-06-15 11:20:58 +00:00
|
|
|
client-certificate: {{ kube_cert_dir }}/kube-proxy-{{ inventory_hostname }}.pem
|
|
|
|
client-key: {{ kube_cert_dir }}/kube-proxy-{{ inventory_hostname }}-key.pem
|
2017-06-15 10:15:52 +00:00
|
|
|
contexts:
|
|
|
|
- context:
|
|
|
|
cluster: local
|
|
|
|
user: kube-proxy
|
|
|
|
name: kube-proxy-{{ cluster_name }}
|
|
|
|
current-context: kube-proxy-{{ cluster_name }}
|