can you try to repro with a manual LB and /* - that should match all sub-paths.
On Wed, May 23, 2018 at 1:11 PM Jonathan Mejias <drumber...@gmail.com> wrote: > Ahmet i did all that you mention it. > > /angular, /angular/, /angular/* and if a get the healtcheck to " / " i > will get the response of a default backend (404). Insted my app have an > "healthCheck" path response (resolve an HTTP 200). > > My path didn`t work. All the problems get solution when you change to an > Nginx Controller using L4 GLB > > Use Nginx Controller and rewrite-target > > > 2018-05-21 20:00 GMT-04:00 'Ahmet Alp Balkan' via Kubernetes user > discussion and Q&A <kubernetes-users@googlegroups.com>: > >> +1 to Tim. Your "rewrite-target" annotation won't work on GKE (it's only >> for nginx-ingress). >> >> Also note that "Services exposed through an Ingress must serve a response >> with HTTP 200 status to the GET requests on "/". This is used for health >> checking. If your application does not serve HTTP 200 on "/", the backend >> will be marked unhealthy and will not get traffic." >> (Quoted from: >> https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer#remarks >> ) >> >> So I would say make sure: >> >> 1. Your "GET /" of the load balancer returns a 200 OK. (Looks like you're >> not handling "/", only /angular and /angular2) >> 2. All backend services listed (in your case "angular-svc") returns HTTP >> 200 OK for "GET /" when called directly (not through the created load >> balancer), you can test this with "kubectl port-forward" >> 3. "path: /angular" will not work for "/angular/foo". As Tim said, use >> "/angular/*". >> >> On Mon, May 21, 2018 at 4:43 PM 'Tim Hockin' via Kubernetes user >> discussion and Q&A <kubernetes-users@googlegroups.com> wrote: >> >>> Did you try /* ? >>> >>> https://cloud.google.com/compute/docs/load-balancing/http/url-map >>> >>> On Mon, May 21, 2018 at 10:44 AM Jonathan Mejias <drumber...@gmail.com> >>> wrote: >>> >>>> The only way that i resolve the problem was changing to an nginx >>>> controller, instead a gke. Installing nginx-controller with kubernetes helm >>>> and using rewrite option. Gke is limited in configuration option i do not >>>> recommend. >>>> >>>> PD: Nginx-controller uses network load balancer (TCP) not HTTP. >>>> >>>> >>>> >>>> On Mon, May 21, 2018, 13:09 <davidshakespe...@gmail.com> wrote: >>>> >>>>> I have same problem. Did you mane to resolve? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Kubernetes user discussion and Q&A" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to kubernetes-users+unsubscr...@googlegroups.com. >>>>> To post to this group, send email to kubernetes-users@googlegroups.com >>>>> . >>>>> Visit this group at https://groups.google.com/group/kubernetes-users. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Kubernetes user discussion and Q&A" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to kubernetes-users+unsubscr...@googlegroups.com. >>>> To post to this group, send email to kubernetes-users@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/kubernetes-users. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Kubernetes user discussion and Q&A" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to kubernetes-users+unsubscr...@googlegroups.com. >>> To post to this group, send email to kubernetes-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/kubernetes-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Kubernetes user discussion and Q&A" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to kubernetes-users+unsubscr...@googlegroups.com. >> To post to this group, send email to kubernetes-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/kubernetes-users. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Saludos Cordiales... > > Atte. Jonathan Mejías > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.