2020-05-08 07:45:43 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta2
|
2018-12-22 16:15:09 +00:00
|
|
|
kind: InitConfiguration
|
|
|
|
nodeRegistration:
|
2019-06-29 21:09:20 +00:00
|
|
|
criSocket: {{ cri_socket }}
|
2018-12-22 16:15:09 +00:00
|
|
|
---
|
2020-05-08 07:45:43 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta2
|
2018-12-19 13:17:58 +00:00
|
|
|
kind: ClusterConfiguration
|
|
|
|
imageRepository: {{ kube_image_repo }}
|
|
|
|
kubernetesVersion: {{ kube_version }}
|
2019-02-13 20:44:12 +00:00
|
|
|
etcd:
|
2022-02-22 16:53:16 +00:00
|
|
|
{% if etcd_deployment_type == "kubeadm" %}
|
2020-03-13 17:28:39 +00:00
|
|
|
local:
|
|
|
|
imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}"
|
|
|
|
imageTag: "{{ etcd_image_tag }}"
|
|
|
|
{% else %}
|
2019-02-13 20:44:12 +00:00
|
|
|
external:
|
|
|
|
endpoints:
|
|
|
|
{% for endpoint in etcd_access_addresses.split(',') %}
|
|
|
|
- {{ endpoint }}
|
|
|
|
{% endfor %}
|
2020-03-13 17:28:39 +00:00
|
|
|
{% endif %}
|
2019-07-11 06:46:54 +00:00
|
|
|
dns:
|
|
|
|
type: CoreDNS
|
2022-02-24 09:01:33 +00:00
|
|
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns(?!/coredns).*$','') }}
|
2019-07-11 06:46:54 +00:00
|
|
|
imageTag: {{ coredns_image_tag }}
|