diff --git a/pkg/minikube/node/start.go b/pkg/minikube/node/start.go index 5c86184b19a6..6b36d7da816d 100644 --- a/pkg/minikube/node/start.go +++ b/pkg/minikube/node/start.go @@ -672,7 +672,7 @@ func validateNetwork(h *host.Host, r command.Runner, imageRepository string, kub } // Non-blocking - go tryRegistry(r, h.Driver.DriverName(), imageRepository, kubernetesVersion) + go tryRegistry(r, h.Driver.DriverName(), imageRepository, kubernetesVersion, ip) return ip, nil } @@ -728,7 +728,7 @@ func trySSH(h *host.Host, ip string) error { } // tryRegistry tries to connect to the image repository -func tryRegistry(r command.Runner, driverName string, imageRepository string, kubernetesVersion string) { +func tryRegistry(r command.Runner, driverName string, imageRepository string, kubernetesVersion string, ip string) { // 2 second timeout. For best results, call tryRegistry in a non-blocking manner. opts := []string{"-sS", "-m", "2"} @@ -747,6 +747,10 @@ func tryRegistry(r command.Runner, driverName string, imageRepository string, ku klog.Warningf("%s failed: %v", rr.Args, err) out.WarningT("This {{.type}} is having trouble accessing https://{{.repository}}", out.V{"repository": imageRepository, "type": driver.MachineType(driverName)}) out.ErrT(style.Tip, "To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/") + // using QEMU with the user network + if driver.IsQEMU(driverName) && ip == "127.0.0.1" { + out.WarningT("Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues") + } } } diff --git a/translations/de.json b/translations/de.json index 54a30bd96c0b..8bc1ee3729ba 100644 --- a/translations/de.json +++ b/translations/de.json @@ -172,6 +172,7 @@ "Downloading Kubernetes {{.version}} preload ...": "Lade Kubernetes {{.version}} herunter ...", "Downloading VM boot image ...": "Lade VM boot image herunter ...", "Downloading driver {{.driver}}:": "Lade Treiber {{.driver}} herunter:", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "Dauer bis das Minikube-Zertifikat abläuft, Default ist drei Jahre (26280 Stunden).", "ERROR creating `registry-creds-acr` secret": "Fehler beim Erstellen des `registry-creds-acr` Secrets", "ERROR creating `registry-creds-dpr` secret": "Fehler beim Erstellen des `registry-creds-dpr` Secrets", diff --git a/translations/es.json b/translations/es.json index 73ea9f8338d8..8754400ef756 100644 --- a/translations/es.json +++ b/translations/es.json @@ -177,6 +177,7 @@ "Downloading Kubernetes {{.version}} preload ...": "Descargando Kubernetes {{.version}} ...", "Downloading VM boot image ...": "Descargando la imagen de arranque de la VM", "Downloading driver {{.driver}}:": "Descargando el controlador {{.driver}}:", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Due to issues with CRI-O post v1.17.3, we need to restart your cluster.": "Debido a problemas con CRI-O post v1.17.3, necesitamos reiniciar tu cluster.", "Due to networking limitations of driver {{.driver_name}} on {{.os_name}}, {{.addon_name}} addon is not supported.\nAlternatively to use this addon you can use a vm-based driver:\n\n\t'minikube start --vm=true'\n\nTo track the update on this work in progress feature please check:\nhttps://github.com/kubernetes/minikube/issues/7332": "Debido a las limitaciones de red del controlador {{.driver_name}} en {{.os_name}}, el complemento \"{{.addon_name}}\" no está soportado.\nPara usar este complemento, puedes utilizar un controlador basado en vm\n\n\t'minikube start --vm=true'\n\nPara realizar un seguimiento de las actualizaciones de esta función consulte:\nhttps://github.com/kubernetes/minikube/issues/7332", "Due to networking limitations of driver {{.driver_name}}, {{.addon_name}} addon is not supported. Try using a different driver.": "Debido a limitaciones de red del controlador {{.driver_name}}, el complemento \"{{.addon_name}}\" no está soportado. Intenta usar un controlador diferente.", diff --git a/translations/fr.json b/translations/fr.json index 38488d1bc42c..660e47f096a9 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -173,6 +173,7 @@ "Downloading Kubernetes {{.version}} preload ...": "Téléchargement du préchargement de Kubernetes {{.version}}...", "Downloading VM boot image ...": "Téléchargement de l'image de démarrage de la VM...", "Downloading driver {{.driver}}:": "Téléchargement du pilote {{.driver}} :", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "Durée jusqu'à l'expiration du certificat minikube, par défaut à trois ans (26280h).", "ERROR creating `registry-creds-acr` secret": "ERREUR lors de la création du secret `registry-creds-acr`", "ERROR creating `registry-creds-dpr` secret": "ERREUR lors de la création du secret `registry-creds-dpr`", diff --git a/translations/ja.json b/translations/ja.json index bb127a46c1dc..1010271a8fbe 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -163,6 +163,7 @@ "Downloading Kubernetes {{.version}} preload ...": "ロード済み Kubernetes {{.version}} をダウンロードしています...", "Downloading VM boot image ...": "VM ブートイメージをダウンロードしています...", "Downloading driver {{.driver}}:": "{{.driver}} ドライバーをダウンロードしています:", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "minikube 証明書の有効期限。デフォルトは 3 年間 (26280h)。", "ERROR creating `registry-creds-acr` secret": "`registry-creds-acr` シークレット作成中にエラーが発生しました", "ERROR creating `registry-creds-dpr` secret": "`registry-creds-dpr` シークレット作成中にエラーが発生しました", diff --git a/translations/ko.json b/translations/ko.json index e8bc5951becb..482ddd476a4c 100644 --- a/translations/ko.json +++ b/translations/ko.json @@ -182,6 +182,7 @@ "Downloading VM boot image ...": "가상 머신 부트 이미지 다운로드 중 ...", "Downloading driver {{.driver}}:": "드라이버 {{.driver}} 다운로드 중 :", "Downloading {{.name}} {{.version}}": "{{.name}} {{.version}} 다운로드 중", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "", "ERROR creating `registry-creds-acr` secret": "registry-creds-acr` secret 생성 오류", "ERROR creating `registry-creds-dpr` secret": "`registry-creds-dpr` secret 생성 오류", diff --git a/translations/pl.json b/translations/pl.json index 1d0a99f632a8..7f934de4fe2a 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -182,6 +182,7 @@ "Downloading VM boot image ...": "Pobieranie obrazu maszyny wirtualnej ...", "Downloading driver {{.driver}}:": "", "Downloading {{.name}} {{.version}}": "Pobieranie {{.name}} {{.version}}", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "", "ERROR creating `registry-creds-acr` secret": "", "ERROR creating `registry-creds-dpr` secret": "", diff --git a/translations/ru.json b/translations/ru.json index c93eb21a4151..9aaf5ed75c75 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -161,6 +161,7 @@ "Downloading Kubernetes {{.version}} preload ...": "Скачивается Kubernetes {{.version}} ...", "Downloading VM boot image ...": "", "Downloading driver {{.driver}}:": "", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "", "ERROR creating `registry-creds-acr` secret": "", "ERROR creating `registry-creds-dpr` secret": "", diff --git a/translations/strings.txt b/translations/strings.txt index 5cf8d39da37f..7b9f3ffd8442 100644 --- a/translations/strings.txt +++ b/translations/strings.txt @@ -161,6 +161,7 @@ "Downloading Kubernetes {{.version}} preload ...": "", "Downloading VM boot image ...": "", "Downloading driver {{.driver}}:": "", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "", "ERROR creating `registry-creds-acr` secret": "", "ERROR creating `registry-creds-dpr` secret": "", diff --git a/translations/zh-CN.json b/translations/zh-CN.json index 0afd6f312379..3b267dd7c907 100644 --- a/translations/zh-CN.json +++ b/translations/zh-CN.json @@ -208,6 +208,7 @@ "Downloading VM boot image ...": "正在下载 VM boot image...", "Downloading driver {{.driver}}:": "正在下载驱动 {{.driver}}:", "Downloading {{.name}} {{.version}}": "正在下载 {{.name}} {{.version}}", + "Due to DNS issues your cluster may have problems starting and you may not be able to pull images\nMore details available at: https://minikube.sigs.k8s.io/docs/drivers/qemu/#known-issues": "", "Duration until minikube certificate expiration, defaults to three years (26280h).": "", "ERROR creating `registry-creds-acr` secret": "", "ERROR creating `registry-creds-dpr` secret": "创建 `registry-creds-dpr` secret 时出错",