WSL2上Minikube安装Istio时Istiod与Ingressgw部署失败求助
问题:WSL2下Minikube+containerd环境安装Istio 1.16.1失败
- 环境:WSL2,Minikube集群(使用containerd作为容器运行时),目标安装Istio 1.16.1
- 故障现象:执行
istioctl install时提示Istiod超时,对应Pod状态为ImagePullBackOff,无法拉取docker.io/istio/pilot:1.16.1镜像 - 错误详情:查看Pod事件发现,获取Docker Hub授权令牌时出现
x509: certificate signed by unknown authority错误 - 已尝试操作:
- 本地用docker手动拉取该镜像成功,但Minikube集群内仍无法拉取
- 尝试切换为docker作为容器运行时启动Minikube失败
istioctl x precheck检测结果正常,怀疑故障与WSL2环境及企业VPN有关
相关命令输出
istioctl install输出
#istioctl install This will install the Istio 1.16.1 default profile with ["Istio core" "Istiod" "Ingress gateways"] components into the cluster. Proceed? (y/N) y ✔ Istio core installed ✘ Istiod encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the condition Deployment/istio-system/istiod (container failed to start: ImagePullBackOff: Back-off pulling image "docker.io/istio/pilot:1.16.1") - Processing resources for Ingress gateways. Waiting for Deployment/istio-system/istio-ingressgateway
kubectl describe pod -n istio-system istiod-7fb4bc46ff-crt9w输出
#kubectl describe pod -n istio-system istiod-7fb4bc46ff-crt9w Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 11m default-scheduler Successfully assigned istio-system/istiod-7fb4bc46ff-crt9w to minikube Normal Pulling 10m (x4 over 11m) kubelet Pulling image "docker.io/istio/pilot:1.16.1" Warning Failed 10m (x4 over 11m) kubelet Failed to pull image "docker.io/istio/pilot:1.16.1": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/istio/pilot:1.16.1": failed to resolve reference "docker.io/istio/pilot:1.16.1": failed to authorize: failed to fetch anonymous token: Get "https://auth.docker.io/token?scope=repository%3Aistio%2Fpilot%3Apull&service=registry.docker.io": x509: certificate signed by unknown authority Warning Failed 10m (x4 over 11m) kubelet Error: ErrImagePull Warning Failed 10m (x6 over 11m) kubelet Error: ImagePullBackOff Normal BackOff 112s (x42 over 11m) kubelet Back-off pulling image "docker.io/istio/pilot:1.16.1"
kubectl get all --all-namespaces输出
#kubectl get all --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE istio-system pod/istiod-7fb4bc46ff-crt9w 0/1 ImagePullBackOff 0 49m kube-system pod/coredns-787d4945fb-cqgrq 1/1 Running 0 51m kube-system pod/etcd-minikube 1/1 Running 0 51m kube-system pod/kindnet-w8t78 1/1 Running 0 51m kube-system pod/kube-apiserver-minikube 1/1 Running 0 51m kube-system pod/kube-controller-manager-minikube 1/1 Running 0 51m kube-system pod/kube-proxy-k72t7 1/1 Running 0 51m kube-system pod/kube-scheduler-minikube 1/1 Running 0 51m kube-system pod/storage-provisioner 1/1 Running 1 (51m ago) 51m NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 51m istio-system service/istiod ClusterIP 10.105.148.207 <none> 15010/TCP,15012/TCP,443/TCP,15014/TCP 49m kube-system service/kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 51m NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE kube-system daemonset.apps/kindnet 1 1 1 1 1 <none> 51m kube-system daemonset.apps/kube-proxy 1 1 1 1 1 kubernetes.io/os=linux 51m NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE istio-system deployment.apps/istiod 0/1 1 0 49m kube-system deployment.apps/coredns 1/1 1 1 51m NAMESPACE NAME DESIRED CURRENT READY AGE istio-system replicaset.apps/istiod-7fb4bc46ff 1 1 0 49m kube-system replicaset.apps/coredns-787d4945fb 1 1 1 51m NAMESPACE NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE istio-system horizontalpodautoscaler.autoscaling/istiod Deployment/istiod <unknown>/80% 1 5 1 49m
内容的提问来源于stack exchange,提问作者user21387093
相关产品推荐
相关产品推荐

