From 25a1e5f9525bd5ff6f11414e10a883668e691e3f Mon Sep 17 00:00:00 2001 From: Florent Monbillard Date: Fri, 13 Mar 2020 13:28:39 -0400 Subject: [PATCH] Include etcd image repository when using kubeadm etcd deployment mode (#5725) --- roles/download/templates/kubeadm-images.yaml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/download/templates/kubeadm-images.yaml.j2 b/roles/download/templates/kubeadm-images.yaml.j2 index e75f62e48..be148196b 100644 --- a/roles/download/templates/kubeadm-images.yaml.j2 +++ b/roles/download/templates/kubeadm-images.yaml.j2 @@ -8,11 +8,17 @@ kind: ClusterConfiguration imageRepository: {{ kube_image_repo }} kubernetesVersion: {{ kube_version }} etcd: +{% if etcd_kubeadm_enabled %} + local: + imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}" + imageTag: "{{ etcd_image_tag }}" +{% else %} external: endpoints: {% for endpoint in etcd_access_addresses.split(',') %} - {{ endpoint }} {% endfor %} +{% endif %} dns: type: CoreDNS imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}