pls have a check on this. It helps you in addressing the issue

https://github.com/waterplaclid/kubernetes-ingress.git

https://github.com/waterplaclid/ingress-nginx.git

For reference how its configured on Minikube check this

https://medium.com/@Oskarr3/setting-up-ingress-on-minikube-6ae825e98f82




On Sunday, May 13, 2018 at 10:47:47 PM UTC+5:30, Jonathan Mejías wrote:

> Hello..
>
> I got an angular deployment in a kubernetes cluster, and i want to define 
> the app access with ingress paths. By example
>
> path: *foo.bar.com/appi1 <http://foo.bar.com/appi1>*   ---->* goes to my 
> angular app*
>
> if i goes to *foo.bar.com/app1/login <http://foo.bar.com/app1/login>*, 
> this response with the default backend. Giving me an 404 error. 
> *(foo.bar.com/login 
> <http://foo.bar.com/login>)  { that's not what i want!)*
>
> My ingress definition is:
>
> ---
> *apiVersion: extensions/v1beta1*
> *kind: Ingress*
> *metadata:*
> *  annotations:*
> *    nginx.ingress.kubernetes.io/rewrite-target 
> <http://nginx.ingress.kubernetes.io/rewrite-target>: /   (THIS NOT WORK! IN 
> GKE INGRESS)*
> *  name: angular-app-ingress *
> *  namespace: default*
> *spec:*
> *  rules:*
> *    http:*
> *      paths:*
> *      - backend:*
> *          serviceName: angular-svc*
> *          servicePort: 80*
> *        path: /angular                   ( /angular/ , /angular/*    NOT 
> WORK EITHER! )*
> *      - backend:*
> *          serviceName: angular-svc*
> *          servicePort: 80*
> *        path: /angular2*
>
> the browser redirects me to my angular backend service, but not at my "
> http://foo.bar.com/angular/login"; point.
>
> is necessary to use a NGINX ingress type?? I want to user an ingress with 
> dynamic endpoints. *NOT* with static endpoints (like the "hello-app" 
> exist).
>
>
>  
>  
>

-- 
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.
  • [kubernetes-... Jonathan Mejías
    • [kubern... Sunil Bhai
    • [kubern... davidshakespeare
      • Re:... Jonathan Mejias
        • ... 'Tim Hockin' via Kubernetes user discussion and Q&A
          • ... 'Ahmet Alp Balkan' via Kubernetes user discussion and Q&A
            • ... Jonathan Mejias
              • ... 'Tim Hockin' via Kubernetes user discussion and Q&A

Reply via email to