2018-12-23 00:15:09 +08:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
|
|
kind: InitConfiguration
|
|
|
|
nodeRegistration:
|
2019-06-30 05:09:20 +08:00
|
|
|
criSocket: {{ cri_socket }}
|
2018-12-23 00:15:09 +08:00
|
|
|
---
|
2018-12-19 21:17:58 +08:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
|
|
kind: ClusterConfiguration
|
|
|
|
imageRepository: {{ kube_image_repo }}
|
|
|
|
kubernetesVersion: {{ kube_version }}
|
2019-02-14 04:44:12 +08:00
|
|
|
etcd:
|
2020-03-14 01:28:39 +08:00
|
|
|
{% if etcd_kubeadm_enabled %}
|
|
|
|
local:
|
|
|
|
imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}"
|
|
|
|
imageTag: "{{ etcd_image_tag }}"
|
|
|
|
{% else %}
|
2019-02-14 04:44:12 +08:00
|
|
|
external:
|
|
|
|
endpoints:
|
|
|
|
{% for endpoint in etcd_access_addresses.split(',') %}
|
|
|
|
- {{ endpoint }}
|
|
|
|
{% endfor %}
|
2020-03-14 01:28:39 +08:00
|
|
|
{% endif %}
|
2019-07-11 14:46:54 +08:00
|
|
|
dns:
|
|
|
|
type: CoreDNS
|
|
|
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}
|
|
|
|
imageTag: {{ coredns_image_tag }}
|