From 87fa644b3319723ede2f5c97cfb258ba41555aa6 Mon Sep 17 00:00:00 2001 From: Chuck Ha Date: Tue, 24 Apr 2018 14:12:31 +0100 Subject: [PATCH] Prepull etcd before an upgrade If kubeadm ever has to upgrade etcd it should prepull the image so there is less downtime during the upgrade when etcd versions change. Fixes kubernetes/kubeadm#669 Signed-off-by: Chuck Ha --- cmd/kubeadm/app/phases/upgrade/prepull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/phases/upgrade/prepull.go b/cmd/kubeadm/app/phases/upgrade/prepull.go index c3ec257a743..848c5f58076 100644 --- a/cmd/kubeadm/app/phases/upgrade/prepull.go +++ b/cmd/kubeadm/app/phases/upgrade/prepull.go @@ -87,7 +87,7 @@ func (d *DaemonSetPrepuller) DeleteFunc(component string) error { // PrepullImagesInParallel creates DaemonSets synchronously but waits in parallel for the images to pull func PrepullImagesInParallel(kubePrepuller Prepuller, timeout time.Duration) error { - componentsToPrepull := constants.MasterComponents + componentsToPrepull := append(constants.MasterComponents, constants.Etcd) fmt.Printf("[upgrade/prepull] Will prepull images for components %v\n", componentsToPrepull) timeoutChan := time.After(timeout)