错误信息:
X 缓存镜像时失败: Caching images for kubeadm: caching images: caching image "C:\\Users\\86136\\.minikube\\cache\\images\\k8s.gcr.io\\kube-scheduler_v1.18.0": nil image for k8s.gcr.io/kube-scheduler:v1.18.0: Get https://k8s.gcr.io/v2/: dial tcp 74.125.23.82:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
不解决:
minikube start --vm-driver=virtualbox --registry-mirror=https://ytsch4ca.mirror.aliyuncs.com --image-repository=registry.aliyuncs.com/google_containers --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.8.0.iso
log:
* Microsoft Windows 10 Home China 10.0.18363 Build 18363 上的 minikube v1.9.2
* 根据现有的配置文件使用 virtualbox 驱动程序
* 正在使用镜像存储库 registry.aliyuncs.com/google_containers
* 正在下载 VM boot image...
> minikube-v1.8.0.iso: 173.56 MiB / 173.56 MiB [ 100.00% 2.13 MiB p/s 1m21s
* Starting control plane node m01 in cluster minikube
* Downloading Kubernetes v1.18.0 preload ...
* Updating the running virtualbox "minikube" VM ...
* 正在 Docker 19.03.8 中准备 Kubernetes v1.18.0…
> kubelet.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubectl.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubeadm.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubeadm: 37.96 MiB / 37.96 MiB [---------------] 100.00% 1.21 MiB p/s 32s
> kubectl: 41.98 MiB / 41.98 MiB [-----------] 100.00% 599.09 KiB p/s 1m12s
> kubelet: 108.01 MiB / 108.01 MiB [----------] 100.00% 889.60 KiB p/s 2m5s
* Enabling addons: default-storageclass, storage-provisioner
* 完成!kubectl 已经配置至 "minikube"