We are upgrading our product with kong right now. I want to redirect the request path to a different backend path. we have achieved this function in a non-Kubernetes environment, but it’s not working in the k8s.
For example, we want request path /sea/api/rest to /sea/api. just strip out the last one.
how Kong achieve this? thanks.
This is the ingress, but it’s not working.
apiVersion: configuration.konghq.com/v1 kind: KongIngress metadata: name: voicenet-module-api upstream: hash_on: ip proxy: path: /sea/api/
apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: konghq.com/strip-path: "false" name: voicenet-module-api namespace: app spec: ingressClassName: kong rules: - host: voicenet.com http: paths: - path: /sea/api/rest/ pathType: Prefix backend: serviceName: voice-network-gateway servicePort: 9527