stone-payments / kong-plugin-url-rewrite

Kong API Gateway plugin for url-rewrite purposes
Apache License 2.0
1 stars 0 forks source link

when i use kong plugin-url-rewrite with kubernetes #32

Open AlZero-t opened 4 years ago

AlZero-t commented 4 years ago

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

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 commented 4 years ago

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

AlZero-t commented 4 years ago

thinks