xianshun163 commented on issue #1230:
URL:
https://github.com/apache/apisix-ingress-controller/issues/1230#issuecomment-1208859168
@tao12345666333 @wolgod
I find sometimes, the ApisixUpstream can not set the scheme to grpc.
This situation will be found once after about ten operations.
This is the case. I put all CRDs in one file, as shown below, and then
directly kubectl apply -f grpc2-route yaml。
I found that
1、create a apisixroute
2、an upstream will be automatically generated when create apisixroute crd,
and the scheme is http.
3、create the apisixupstream crd , the scheme will be changed to grpc.
I thought, the time interval is very short, The order of the step 2 and 3
may be uncertain.
```
[root@master app]# cat grpc2-route.yaml
apiVersion: apisix.apache.org/v2beta2
kind: ApisixRoute
metadata:
name: xsgrpc-proxy-route
spec:
http:
- name: xsgrpc-route
match:
paths:
- "/helloworld.Greeter/SayHello"
backends:
- serviceName: xsgrpc-service
servicePort: 50051
weight: 10
---
apiVersion: apisix.apache.org/v2beta3
kind: ApisixUpstream
metadata:
name: xsgrpc-service
spec:
scheme: grpc
--
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]