google-kubernetes-engine

ingress routing api prefix issue

南楼画角 提交于 2020-08-10 23:23:10
问题 paths: - backend: serviceName: booknotes-front-end-service servicePort: 80 path: / - backend: serviceName: booknotes-back-end-service servicePort: 3000 path: /api Here is a rules in my ingres-nginx resource . I try to direct all traffic which starts from /api to my back end service, which works properly, but if some route in my back end will be like /api/users it doesn't work , my back end send response not found , when I run it locally this route working properly. Also I've tried delete /api

ingress routing api prefix issue

我们两清 提交于 2020-08-10 23:20:30
问题 paths: - backend: serviceName: booknotes-front-end-service servicePort: 80 path: / - backend: serviceName: booknotes-back-end-service servicePort: 3000 path: /api Here is a rules in my ingres-nginx resource . I try to direct all traffic which starts from /api to my back end service, which works properly, but if some route in my back end will be like /api/users it doesn't work , my back end send response not found , when I run it locally this route working properly. Also I've tried delete /api

Why does my GKE cluster not show any events?

 ̄綄美尐妖づ 提交于 2020-08-09 08:13:59
问题 I have a GKE cluster and deployed some workloads on it. What I noticed is that whenever I do kubectl get events --all-namespaces , I don't see any results. kubectl describe deployment <name> doesn't show any events either. I'm pretty sure things do happen in my cluster because all my workloads are running fine and Stackdriver is able to report logs and HPA functions perfectly. But my events section is empty all over. Why is this? Is this something I've to enable manually in GKE? 回答1: