dchien234 commented on issue #6381:
URL: https://github.com/apache/apisix/issues/6381#issuecomment-1776717907
Thanks for the clue. Got similar requirement and solved by using this k8s
config:
```yaml
---
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: <be-service-name>
namespace: app
spec:
http:
- name: <be-service-name-api>
match:
hosts:
- <some-host>
paths:
- /iam/*
backends:
- serviceName: <be-service-name>
servicePort: 8000
weight: 100
resolveGranularity: service
plugins:
- name: proxy-rewrite # Need to rewrite from .../pres/healthz to
.../healthz
enable: true
config:
regex_uri:
- "^/iam/(.*)"
- "/$1"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]