Your ingress targets this service: serviceName: myservice servicePort: 80but the service named myservice exposes port 8080 rather than 80: ports: - protocol: "TCP" # Port accessible inside cluster port: 8080 # Port to forward to inside the pod targetPort: 80Your ingress should point to one of the ports exposed by the service. Also, the service itself targets port 80, but the pods in your deployment seem to expose port 8080, rather than 80: containers: - name: my-service image: my-custom-docker-regisry/my-service:latest imagePullPolicy: Always ports: - containerPort: 8080So long story short, looks like you could swap port with targetPort in your service so that: the pods expose port 8080 the service exposes port 8080 of all the pods under service name myservice port 80, the ingress configures nginx to proxy your traffic to service myservice port 80. (责任编辑:) |