mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
fix-kubeadm-pull-log
This commit is contained in:
parent
d70e7844ba
commit
d9506299ac
@ -259,6 +259,10 @@ func NewInit(cfgPath string, externalcfg *kubeadmapiv1alpha2.MasterConfiguration
|
|||||||
if err := preflight.RunInitMasterChecks(utilsexec.New(), cfg, ignorePreflightErrors); err != nil {
|
if err := preflight.RunInitMasterChecks(utilsexec.New(), cfg, ignorePreflightErrors); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("[preflight/images] Pulling images required for setting up a Kubernetes cluster")
|
||||||
|
fmt.Println("[preflight/images] This might take a minute or two, depending on the speed of your internet connection")
|
||||||
|
fmt.Println("[preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'")
|
||||||
if err := preflight.RunPullImagesCheck(utilsexec.New(), cfg, ignorePreflightErrors); err != nil {
|
if err := preflight.RunPullImagesCheck(utilsexec.New(), cfg, ignorePreflightErrors); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -843,6 +843,7 @@ func (ImagePullCheck) Name() string {
|
|||||||
// Check pulls images required by kubeadm. This is a mutating check
|
// Check pulls images required by kubeadm. This is a mutating check
|
||||||
func (i ImagePullCheck) Check() (warnings, errors []error) {
|
func (i ImagePullCheck) Check() (warnings, errors []error) {
|
||||||
for _, image := range i.ImageList {
|
for _, image := range i.ImageList {
|
||||||
|
glog.V(1).Infoln("pulling ", image)
|
||||||
if err := i.Images.Exists(image); err == nil {
|
if err := i.Images.Exists(image); err == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user