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-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
+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."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:
On Mon, May 21, 2018 at 10:44 AM Jonathan Mejias <drumb...@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 <davidsha...@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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.
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 GLBUse Nginx Controller and rewrite-target
2018-05-21 20:00 GMT-04:00 'Ahmet Alp Balkan' via Kubernetes user discussion and Q&A <kubernet...@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."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 <kubernet...@googlegroups.com> wrote:
On Mon, May 21, 2018 at 10:44 AM Jonathan Mejias <drumb...@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 <davidsha...@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-use...@googlegroups.com.
To post to this group, send email to kubernet...@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-use...@googlegroups.com.
To post to this group, send email to kubernet...@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-use...@googlegroups.com.
To post to this group, send email to kubernet...@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-use...@googlegroups.com.
To post to this group, send email to kubernet...@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-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.