服务名称和端口均正确,命名空间也是没有问题的
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default-http-backend ClusterIP 10.101.13.70 <none> 80/TCP 119m
eureka-server NodePort 10.101.111.123 <none> 1111:30405/TCP 118m
ingress-nginx NodePort 10.98.24.170 <none> 80:30479/TCP,443:30469/TCP 117m
producer-server ClusterIP 10.111.148.42 <none> 1112/TCP 118m
zuul-server ClusterIP 10.109.157.196 <none> 1115/TCP 118m
为什么还是none? 有相同情况的吗
Name: gateway-ingress
Namespace: ingress-nginx
Address:
Default backend: default-http-backend:80 (<none>)
Rules:
Host Path Backends
---- ---- --------
foo.bar.com
/eur eureka-server:1111 (<none>)
/pro producer-server:1112 (<none>)
/zuu zuul-server:1115 (<none>)
Annotations:
kubernetes.io/ingress.class: nginx
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal CREATE 49m nginx-ingress-controller Ingress ingress-nginx/gateway-ingress