19 lines
419 B
Text
19 lines
419 B
Text
|
apiVersion: v1
|
||
|
kind: Config
|
||
|
current-context: kubelet-to-{{ cluster_name }}
|
||
|
preferences: {}
|
||
|
clusters:
|
||
|
- cluster:
|
||
|
certificate-authority: {{ kube_cert_dir }}/ca.crt
|
||
|
server: https://{{ groups['kube-master'][0] }}:443
|
||
|
name: {{ cluster_name }}
|
||
|
contexts:
|
||
|
- context:
|
||
|
cluster: {{ cluster_name }}
|
||
|
user: kubelet
|
||
|
name: kubelet-to-{{ cluster_name }}
|
||
|
users:
|
||
|
- name: kubelet
|
||
|
user:
|
||
|
token: {{ kubelet_token }}
|