mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
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 <ha.chuck@gmail.com>
This commit is contained in:
parent
4344d33772
commit
87fa644b33
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user