diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go index fb686b3afd90..cd7afeb4ec4f 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go @@ -314,6 +314,14 @@ func (k *KubeadmBootstrapper) DeleteCluster(k8s config.KubernetesConfig) error { // PullImages downloads images that will be used by RestartCluster func (k *KubeadmBootstrapper) PullImages(k8s config.KubernetesConfig) error { + version, err := ParseKubernetesVersion(k8s.KubernetesVersion) + if err != nil { + return errors.Wrap(err, "parsing kubernetes version") + } + if version.LT(semver.MustParse("1.11.0")) { + return fmt.Errorf("pull command is not supported by kubeadm v%s", version) + } + cmd := fmt.Sprintf("sudo kubeadm config images pull --config %s", constants.KubeadmConfigFile) if err := k.c.Run(cmd); err != nil { return errors.Wrapf(err, "running cmd: %s", cmd)