kingluo commented on issue #9240:
URL: https://github.com/apache/apisix/issues/9240#issuecomment-1501064828

   For grpc upstream server, the schema must be `grpc`.
   If your service exposes different ports, choose the correct port for grpc 
only.
   
   Some of your routes use http port but not grpc port.
   
   For example:
   
   this route should use grpc upstream according to what the name hints.
   
   ```json
   {
     "createdIndex":32,
     "value":{
       "uris":[
         "\/*"
       ],
       "priority":1,
       "hosts":[
         "dongnan.endpoint.windmill.com"
       ],
       "desc":"Created by apisix-ingress-controller, DO NOT modify it manually",
       "upstream_id":"b9260e1d",
       "update_time":1681020908,
       "create_time":1678936960,
       "name":"default_dongnan_grpc",
       "id":"2c4a379a",
       "labels":{
         "managed-by":"apisix-ingress-controller"
       },
       "status":1
     },
     "modifiedIndex":238338,
     "key":"\/apisix\/routes\/2c4a379a"
   },
   ```
   
   But actually, it uses http upstream:
   
   ```json
   {
     "createdIndex":29,
     "value":{
       "type":"roundrobin",
       "hash_on":"vars",
       "desc":"Created by apisix-ingress-controller, DO NOT modify it manually",
       "update_time":1681021208,
       "pass_host":"pass",
       "name":"default_dongnan_8001",
       "id":"b9260e1d",
       "labels":{
         "managed-by":"apisix-ingress-controller"
       },
       "nodes":[
         {
           "weight":100,
           "host":"10.233.64.129",
           "priority":0,
           "port":8001
         }
       ],
       "scheme":"http",
       "create_time":1678936960
     },
     "modifiedIndex":238352,
     "key":"\/apisix\/upstreams\/b9260e1d"
   }
   ```
   
   Please check your helm cfg according to ingress doc:
   
   
https://apisix.apache.org/zh/docs/ingress-controller/concepts/apisix_upstream/


-- 
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]

Reply via email to