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
503 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: kube-proxy
  10. user:
  11. client-certificate: {{ kube_cert_dir }}/kube-proxy-{{ inventory_hostname }}.pem
  12. client-key: {{ kube_cert_dir }}/kube-proxy-{{ inventory_hostname }}-key.pem
  13. contexts:
  14. - context:
  15. cluster: local
  16. user: kube-proxy
  17. name: kube-proxy-{{ cluster_name }}
  18. current-context: kube-proxy-{{ cluster_name }}