Include etcd image repository when using kubeadm etcd deployment mode (#5725)
parent
38df80046e
commit
25a1e5f952
|
@ -8,11 +8,17 @@ kind: ClusterConfiguration
|
||||||
imageRepository: {{ kube_image_repo }}
|
imageRepository: {{ kube_image_repo }}
|
||||||
kubernetesVersion: {{ kube_version }}
|
kubernetesVersion: {{ kube_version }}
|
||||||
etcd:
|
etcd:
|
||||||
|
{% if etcd_kubeadm_enabled %}
|
||||||
|
local:
|
||||||
|
imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}"
|
||||||
|
imageTag: "{{ etcd_image_tag }}"
|
||||||
|
{% else %}
|
||||||
external:
|
external:
|
||||||
endpoints:
|
endpoints:
|
||||||
{% for endpoint in etcd_access_addresses.split(',') %}
|
{% for endpoint in etcd_access_addresses.split(',') %}
|
||||||
- {{ endpoint }}
|
- {{ endpoint }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
dns:
|
dns:
|
||||||
type: CoreDNS
|
type: CoreDNS
|
||||||
imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}
|
||||||
|
|
Loading…
Reference in New Issue