You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
479 B

  1. apiVersion: v1
  2. kind: Config
  3. clusters:
  4. - name: local
  5. cluster:
  6. certificate-authority: {{ kube_cert_dir }}/ca.pem
  7. server: {{ kube_apiserver_endpoint }}
  8. users:
  9. - name: kubelet
  10. user:
  11. client-certificate: {{ kube_cert_dir }}/node-{{ inventory_hostname }}.pem
  12. client-key: {{ kube_cert_dir }}/node-{{ inventory_hostname }}-key.pem
  13. contexts:
  14. - context:
  15. cluster: local
  16. user: kubelet
  17. name: kubelet-{{ cluster_name }}
  18. current-context: kubelet-{{ cluster_name }}