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.

28 lines
883 B

  1. ---
  2. apiVersion: kubeadm.k8s.io/v1beta2
  3. kind: JoinConfiguration
  4. discovery:
  5. bootstrapToken:
  6. {% if kubeadm_config_api_fqdn is defined %}
  7. apiServerEndpoint: {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
  8. {% else %}
  9. apiServerEndpoint: {{ kubeadm_discovery_address }}
  10. {% endif %}
  11. token: {{ kubeadm_token }}
  12. {% if kubeadm_ca_hash.stdout is defined %}
  13. caCertHashes:
  14. - sha256:{{ kubeadm_ca_hash.stdout }}
  15. {% else %}
  16. unsafeSkipCAVerification: true
  17. {% endif %}
  18. timeout: {{ discovery_timeout }}
  19. tlsBootstrapToken: {{ kubeadm_token }}
  20. caCertPath: {{ kube_cert_dir }}/ca.crt
  21. nodeRegistration:
  22. name: {{ kube_override_hostname }}
  23. criSocket: {{ cri_socket }}
  24. {% if 'calico-rr' in group_names and 'kube-node' not in group_names %}
  25. taints:
  26. - effect: NoSchedule
  27. key: node-role.kubernetes.io/calico-rr
  28. {% endif %}