Hi, Need some help with ingress controller
we want to redirect a http request say <host>/<path>/xyz to be mapped to a 
service in the backend. And the service should receive the request as 
<host>/xyz
How do we annotate this in the ingress resource?

Have configured the ingress resource as shown:


apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 annotations:
   kubernetes.io/ingress.class: traefik
 name: test-ingress
 namespace: default
 
spec:
 rules:
 - http:
     paths:
     - backend:
         serviceName: test
         servicePort: 6006
       path: /test
status:
 loadBalancer: {}

But the problem is <host>/test/data gets redirected as <host>/, but we want 
it to be redirected as <host>/data
Any idea how to annotate this?

-- 
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-users]... Kanthi P

Reply via email to