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.

19 lines
483 B

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