You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

遇到的问题

  1. 执行kubectl get pods --namespace=ingress-nginx查看Pod状态时,ingress-nginx-controller pod出现ImageInspectError
  2. 执行kubectl apply -f ingress-srv.yaml应用Ingress配置时报错

已尝试的操作

执行命令删除ingress-nginx命名空间下所有资源后重新部署,问题仍未解决:

kubectl delete all --all -n ingress-nginx

恳请帮忙排查问题原因。


内容的提问来源于stack exchange,提问作者Daniel Morales

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 17:35:36