springboot-web.yaml apply失败
来源:7-3 springboot的web服务迁移kubernetes

简舟
2020-05-11
老师您好,在部署springboot-web时候,报错如下
[root@m7-a2-15-41 configs]# kubectl apply -f springboot-web.yaml
deployment.apps/springboot-web-demo unchanged
service/springboot-web-demo unchanged
Error from server (InternalError): error when creating “springboot-web.yaml”: Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”: Post https://ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s: dial tcp 10.254.234.112:443: connect: connection refused
我的集群中并没有10.254.234.112这个节点,我查看配置文件也没有配置这个IP地址,不知道怎么解决
pod运行正常
[root@m7-a2-15-41 configs]# kubectl get pods -n ingress-nginx
NAME READY STATUS RESTARTS AGE
default-http-backend-5c9bb94849-vd6g2 1/1 Running 1 6h35m
nginx-ingress-controller-65ccbbc7bb-c6f6v 1/1 Running 0 132m
1回答
-
刘果国
2020-05-12
你好,10.254.234.112这个是svc的ip。kubectl get svc可以查看。svcip不通一般是kube-proxy有问题,检查一下相关的日志看看
022020-05-13
相似问题
回答 2
回答 1