023108a733
* Refactor calico-rr to run in k8s cluster with taint Change-Id: I75a3169ff5b36ce8302fc7ef1c32d3eb697b5afa * add preinstall checks * rework calico/rr role Change-Id: I2f0a7e6cb77cf91ad4a615923680760d2e5d9ca8 * add empty calico-rr group Change-Id: I006c0a60db9b72d02245bf8fdfabcf982144a5ad
24 lines
806 B
Django/Jinja
24 lines
806 B
Django/Jinja
apiVersion: kubeadm.k8s.io/v1alpha3
|
|
kind: JoinConfiguration
|
|
clusterName: {{ cluster_name }}
|
|
discoveryFile: ""
|
|
caCertPath: {{ kube_cert_dir }}/ca.crt
|
|
discoveryTimeout: {{ discovery_timeout }}
|
|
discoveryToken: {{ kubeadm_token }}
|
|
tlsBootstrapToken: {{ kubeadm_token }}
|
|
token: {{ kubeadm_token }}
|
|
discoveryTokenAPIServers:
|
|
{% if kubeadm_config_api_fqdn is defined %}
|
|
- {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
|
|
{% else %}
|
|
- {{ kubeadm_discovery_address }}
|
|
{% endif %}
|
|
discoveryTokenUnsafeSkipCAVerification: true
|
|
nodeRegistration:
|
|
name: {{ kube_override_hostname }}
|
|
criSocket: {{ cri_socket }}
|
|
{% if 'calico-rr' in group_names and 'kube-node' not in group_names %}
|
|
taints:
|
|
- effect: NoSchedule
|
|
key: node-role.kubernetes.io/calico-rr
|
|
{% endif %}
|