2022-06-07 03:25:57 +08:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta3
|
2018-12-23 00:15:09 +08:00
|
|
|
kind: InitConfiguration
|
|
|
|
nodeRegistration:
|
2019-06-30 05:09:20 +08:00
|
|
|
criSocket: {{ cri_socket }}
|
2018-12-23 00:15:09 +08:00
|
|
|
---
|
2022-06-07 03:25:57 +08:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta3
|
2018-12-19 21:17:58 +08:00
|
|
|
kind: ClusterConfiguration
|
|
|
|
imageRepository: {{ kube_image_repo }}
|
|
|
|
kubernetesVersion: {{ kube_version }}
|
2019-02-14 04:44:12 +08:00
|
|
|
etcd:
|
2022-02-23 00:53:16 +08:00
|
|
|
{% if etcd_deployment_type == "kubeadm" %}
|
2020-03-14 01:28:39 +08:00
|
|
|
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:
|
2023-07-05 11:36:54 +08:00
|
|
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns(?!/coredns).*$', '') }}
|
2019-07-11 14:46:54 +08:00
|
|
|
imageTag: {{ coredns_image_tag }}
|