2018-12-22 16:15:09 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
|
|
kind: InitConfiguration
|
|
|
|
nodeRegistration:
|
2019-06-29 21:09:20 +00:00
|
|
|
criSocket: {{ cri_socket }}
|
2018-12-22 16:15:09 +00:00
|
|
|
---
|
2018-12-19 13:17:58 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
|
|
kind: ClusterConfiguration
|
|
|
|
imageRepository: {{ kube_image_repo }}
|
|
|
|
kubernetesVersion: {{ kube_version }}
|
2019-02-13 20:44:12 +00:00
|
|
|
etcd:
|
|
|
|
external:
|
|
|
|
endpoints:
|
|
|
|
{% for endpoint in etcd_access_addresses.split(',') %}
|
|
|
|
- {{ endpoint }}
|
|
|
|
{% endfor %}
|
2019-07-11 06:46:54 +00:00
|
|
|
{% if dns_mode in ['coredns', 'coredns_dual'] %}
|
|
|
|
dns:
|
|
|
|
type: CoreDNS
|
|
|
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}
|
|
|
|
imageTag: {{ coredns_image_tag }}
|
|
|
|
{% endif %}
|