ingress-nginx安装异常求助:WSL2+Docker Desktop环境部署问题
问题排查请求
环境与配置
- 系统环境:Windows 10 + WSL 2 + Docker Desktop
- 编写的Ingress YAML配置文件:
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-srv annotations: kubernetes.io/ingress.class: nginx spec: rules: - host: posts.com http: paths: - path: /posts pathType: Prefix backend: service: name: posts-clusterip-srv port: number: 4000
操作步骤
执行以下命令部署ingress-nginx:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.4.0/deploy/static/provider/cloud/deploy.yaml
遇到的问题
- 执行
kubectl get pods --namespace=ingress-nginx查看Pod状态时,ingress-nginx-controller pod出现ImageInspectError - 执行
kubectl apply -f ingress-srv.yaml应用Ingress配置时报错
已尝试的操作
执行命令删除ingress-nginx命名空间下所有资源后重新部署,问题仍未解决:
kubectl delete all --all -n ingress-nginx
恳请帮忙排查问题原因。
内容的提问来源于stack exchange,提问作者Daniel Morales
相关产品推荐
相关产品推荐

