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.

25 lines
846 B

  1. apiVersion: kubeadm.k8s.io/v1alpha2
  2. kind: NodeConfiguration
  3. clusterName: {{ cluster_name }}
  4. discoveryFile: ""
  5. caCertPath: {{ kube_cert_dir }}/ca.crt
  6. discoveryTimeout: {{ discovery_timeout }}
  7. discoveryToken: {{ kubeadm_token }}
  8. tlsBootstrapToken: {{ kubeadm_token }}
  9. token: {{ kubeadm_token }}
  10. discoveryTokenAPIServers:
  11. {% if kubeadm_config_api_fqdn is defined %}
  12. - {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
  13. {% else %}
  14. - {{ kubeadm_discovery_address | replace("https://", "")}}
  15. {% endif %}
  16. discoveryTokenUnsafeSkipCAVerification: true
  17. nodeRegistration:
  18. name: {{ kube_override_hostname }}
  19. {% if container_manager == 'crio' %}
  20. criSocket: /var/run/crio/crio.sock
  21. {% elif container_manager == 'rkt' %}
  22. criSocket: /var/run/rkt.sock
  23. {% else %}
  24. criSocket: /var/run/dockershim.sock
  25. {% endif %}