分层定位
分层定位
kubectl get ingress web -o wide
kubectl describe ingress web | tail -20
kubectl get endpoints web-svc
kubectl -n ingress-nginx logs deploy/ingress-nginx-controller --tail=80 | grep -iE 'error|upstream'
kubectl get pods -l app=web -o widePod 处于 Running 但未 Ready 时不会进入端点列表,表现为 503;targetPort 与容器监听端口不一致则表现为 502。