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.

23 lines
793 B

  1. apiVersion: kubeadm.k8s.io/v1beta1
  2. kind: JoinConfiguration
  3. discovery:
  4. bootstrapToken:
  5. {% if kubeadm_config_api_fqdn is defined %}
  6. apiServerEndpoint: {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
  7. {% else %}
  8. apiServerEndpoint: {{ kubeadm_discovery_address | replace("https://", "")}}
  9. {% endif %}
  10. token: {{ kubeadm_token }}
  11. unsafeSkipCAVerification: true
  12. timeout: {{ discovery_timeout }}
  13. tlsBootstrapToken: {{ kubeadm_token }}
  14. caCertPath: {{ kube_cert_dir }}/ca.crt
  15. nodeRegistration:
  16. name: {{ kube_override_hostname }}
  17. {% if container_manager == 'crio' %}
  18. criSocket: /var/run/crio/crio.sock
  19. {% elif container_manager == 'rkt' %}
  20. criSocket: /var/run/rkt.sock
  21. {% else %}
  22. criSocket: /var/run/dockershim.sock
  23. {% endif %}