jialechan commented on issue #11543:
URL: https://github.com/apache/apisix/issues/11543#issuecomment-2360561920

   > @jialechan maybe this issue is because the httpbin server doesn't support 
http2?
   
   @shreemaan-abhishek Thank you for your reply. I replace httpbin to something 
support http2, but it is not working too:
   
   **Step 1: create apisix** 
   ```
   helm install apisix apisix/apisix --create-namespace --namespace 
ingress-apisix --set etcd.persistence.size=20Gi --set 
ingress-controller.enabled=true --set 
etcd.persistence.storageClass=alicloud-disk-essd
   ```
   
![image](https://github.com/user-attachments/assets/21219fdf-a74e-43e9-96ea-15bc125c4765)
   
   **Step 2: create test service**
   ```
   apiVersion: v1
   kind: Endpoints
   metadata:
     name: my-test
   subsets:
   - addresses:
     - ip: 139.162.123.134 # nghttp2.org
     ports:
     - name: my-test
       port: 80
       protocol: TCP
   ---
   apiVersion: v1
   kind: Service
   metadata:
     name: my-test
   spec:
     ports:
     - name: my-test
       port: 80
       protocol: TCP
   ---
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: my-test
     namespace: default
   spec:
     http:
       - backends:
           - serviceName: my-test
             servicePort: 80
         match:
           paths:
             - /*
         name: route1
   ```
   **Step 3: test result**
   
![image](https://github.com/user-attachments/assets/deb1fb48-8c6a-4e8d-8886-77522ae744a7)
   
   **It seems that http2 can be used to access the service directly, but it 
cannot be used after forwarding through apisix.**


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