mirror of https://github.com/k3s-io/k3s
Pre-pull images after preflight for HA setup.
If download fails continue with a warning onlypull/564/head
parent
0048d2da40
commit
86b6bbd1b9
|
@ -419,6 +419,10 @@ func (j *joinData) Run() error {
|
||||||
fmt.Printf("[join] Running pre-flight checks before initializing the new control plane instance\n")
|
fmt.Printf("[join] Running pre-flight checks before initializing the new control plane instance\n")
|
||||||
preflight.RunInitMasterChecks(utilsexec.New(), initCfg, j.ignorePreflightErrors)
|
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
|
// Prepares the node for hosting a new control plane instance by writing necessary
|
||||||
// kubeconfig files, and static pod manifests
|
// kubeconfig files, and static pod manifests
|
||||||
if err := j.PrepareForHostingControlPlane(initCfg); err != nil {
|
if err := j.PrepareForHostingControlPlane(initCfg); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue