FlyTOmeLight commented on issue #9240:
URL: https://github.com/apache/apisix/issues/9240#issuecomment-1501053193
> * why do you configure proxy-rewrite to change uri? It's confusing and
completely unnecessary for grpc.
> *
we has lots of same modelserver endpoint need to proxy, they have same port,
http:8000,grpc:8001, metrics:8002, so we set it in upstreams like this.
```
kind: ApisixUpstream
metadata:
name: {{ .Release.Name }}
spec:
loadbalancer:
type: ewma
retries: {{ .Values.ingress.retries }}
timeout:
connect: {{ .Values.ingress.timeout.connect }}
send: {{ .Values.ingress.timeout.send }}
read: {{ .Values.ingress.timeout.read }}
portLevelSettings:
- port: 8000
scheme: http
- port: 8001
scheme: grpc
- port: 8002
scheme: http
```
<img width="1506" alt="image"
src="https://user-images.githubusercontent.com/41530068/230758074-0bcd5c84-91e0-40d7-bd24-75ac8220e792.png">
--
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]