You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/25 04:49:48 UTC

[GitHub] [apisix-ingress-controller] xianshun163 commented on issue #1269: bug: Unstable when configuring HTTP and grpc at the same time

xianshun163 commented on issue #1269:
URL: https://github.com/apache/apisix-ingress-controller/issues/1269#issuecomment-1226771912

   
   Minimal test code / Steps to reproduce
   1、deploy a service with 2 port
   2、config apisixupstream
   3、config apisixroute for http
   4、config apisixroute for grpc
   goto the apisix dashboard to see the upstream .
   you can do more test by delete the apisixroute of grpc, and create it again.
   
   
   my  yaml file  is  like this: 
   ```
    cat xstest-up.yaml
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixUpstream
   metadata:
     name: xstestjavademo
     namespace: test-devops
   spec:
     portLevelSettings:
     - port: 9001
       scheme: http
     - port: 2080
       scheme: grpc
     timeout:
       connect: 1s
       read: 3s
       send: 3s
   
   ---
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: xstestjavademo9001
     namespace: test-devops
   spec:
     http:
     - name: rule1
       match:
         hosts:
         - local.xsapp2.org
         paths:
         - /arch/xsapp2/*
       backends:
          - serviceName: xstestjavademo
            servicePort: 9001
       plugins:
          - name: proxy-rewrite
            enable: true
            config:
              regex_uri:
              - "^/arch/xsapp2/*"
              - "/${1}"
   ---
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: xstestjavademo
     namespace: test-devops
   spec:
     http:
     - name: rule2
       match:
         paths:
         - /xsappgrpc/*
       backends:
          - serviceName: xstestjavademo
            servicePort: 2080
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org