集群侧确认
集群侧确认
kubectl get svc web-np -o wide
kubectl get endpoints web-np
kubectl get pods -l app=web -o wide
kubectl get svc web-np -o jsonpath='{.spec.ports[0].nodePort}'节点与外部侧确认
节点与外部侧确认
curl -sv http://<节点内网IP>:30080/health
ss -lntp | grep 30080 # 节点上应有监听(kube-proxy 规则)
iptables -t nat -L KUBE-NODEPORTS -n | head
# 云上检查安全组/网络 ACL;本机检查主防火墙在集群内 curl ClusterIP 通、节点上 curl 不通时,优先看节点防火墙与 kube-proxy 状态。