我用的自己的镜像,一个spingboot的接口服务
ping springboot-web-1.springboot-web-svc,可以成功
通过 在pod 0 中访问 curl springboot-web-1.springboot-web-svc/xxx/提示
curl: (7) Failed to connect to springboot-web-svc port 80: Connection refused
这是什么原因
kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 27d
service/springboot-web-svc ClusterIP None <none> 80/TCP 9h
curl springboot-web-1.springboot-web-svc/
curl: (7) Failed to connect to springboot-web-1.springboot-web-svc port 80: Connection refused