Merge pull request #72870 from MalloZup/fix-join-ha

Kubeadm/HA: pull images during join for control-plane
pull/564/head
Kubernetes Prow Robot 2019-01-16 04:03:20 -08:00 committed by GitHub
commit 6d479af411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -419,6 +419,10 @@ func (j *joinData) Run() error {
fmt.Println("[join] Running pre-flight checks before initializing the new control plane instance")
preflight.RunInitMasterChecks(utilsexec.New(), initCfg, j.ignorePreflightErrors)
fmt.Println("[join] Pulling control-plane images")
if err := preflight.RunPullImagesCheck(utilsexec.New(), initCfg, j.ignorePreflightErrors); err != nil {
return err
}
// Prepares the node for hosting a new control plane instance by writing necessary
// kubeconfig files, and static pod manifests
if err := j.PrepareForHostingControlPlane(initCfg); err != nil {