1
root01 OP 已经修正两个 YAML 文件中的 labels=test-nginx
|
2
root01 OP 但是仍无法访问
|
3
SignLeung 2021-05-04 17:21:37 +08:00
可以 curl podIP:containerPort 看看能不能访问
|
4
root01 OP @SignLeung
# nslookup shun-nginx Server: 10.96.0.10 Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local Name: shun-nginx Address 1: 10.104.210.29 shun-nginx.default.svc.cluster.local / # wget shun-nginx Connecting to shun-nginx (10.104.210.29:80) wget: can't connect to remote host (10.104.210.29): Connection refused |
6
freezex 2021-05-04 18:05:07 +08:00
svc 里的这个: targetPort: http
deploy 里没有 |