kong-plugin-url-rewrite icon indicating copy to clipboard operation
kong-plugin-url-rewrite copied to clipboard

when i use kong plugin-url-rewrite with kubernetes

Open AlZero-t opened this issue 5 years ago • 2 comments

Hi, I have a question for you about plugin for kubernetes . this is example plugins:

  • name: kong-plugin-url-rewrite route: config: url: http://new-url.com

I want to switch from A domain to B domain I wrote the following YAML file But I don't know how to modify it Can you take a look at it for me

1 apiVersion: extensions/v1betal 2 kind: Ingress 3 metadata: 4 name: rewrite-icc-api-kong 5 annotations: 6 plugins.kongq.com: kong-plugin-url-rewrite 7 konghq.com/strip-path: "false" 8 9 spec: 10 rules: 11 - host: services.dev.iccchina.com/api/test 12 http: 13 paths: 14 -backend: 15 serviceName: icc-api 16 servicePort: 80 17 url: icc-api.dev.iccchina.com/api/v1/test

AlZero-t avatar Aug 31 '20 01:08 AlZero-t

A domain services.dev.iccchina.com/api/test B domain icc-api.dev.iccchina.com/api/v1/test

AlZero-t avatar Aug 31 '20 01:08 AlZero-t

thinks

AlZero-t avatar Aug 31 '20 01:08 AlZero-t