jiaozhentian opened a new issue, #2061:
URL: https://github.com/apache/apisix-ingress-controller/issues/2061

   ### Current Behavior
   
   Now we have APISIX3.5 installed by helm, istio1.19 in kubernetes 1.27. All 
things were implemented properly, the APISIX install script is 
   ```
   helm upgrade -i apisix-istio apisix/apisix \
           --version=1.6.2 \
           --set gateway.type=NodePort \
           --set ingress-controller.enabled=true \
           --set ingress-controller.config.apisix.serviceNamespace=apisix-istio 
 \
           --set 
ingress-controller.config.apisix.serviceName=apisix-istio-admin  \
           --set gateway.stream.enabled=true \
           --set gateway.stream.tcp[0].addr=9100 \
           --set gateway.stream.tcp[1].addr=9101 \
           --set gateway.stream.tcp[2].addr=9102 \
           --set gateway.stream.udp[0]=9200 \
           --set gateway.stream.udp[1]=9201 \
           --namespace apisix-istio
   ```
   and the route of the mysql is:
   ```
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: mysql
     namespace: tools
   spec:
     stream:
       - name: mysql-rule
         protocol: TCP
         match:
           ingressPort: 9100
         backend:
           serviceName: mysql
           servicePort: 3306
   ```
   but the gateway seems not work well.
   
   ### Expected Behavior
   
   I use this command trying get the connection with mysql sevice:
   ```
   mysql --protocol=TCP --host=192.168.108.53 --port=31418 -u root -p
   ```
   I use 192.168.xxx.xxx IP in my local computer, tried the Endpoint IP or 
service IP of apisix-istio-gateway10.16.xxx.xxx in the mysql pod, but 
everything I tried just got nothing.
   Yeah, nothing, I got nothing come back after entering password of mysql.
   
   ### Error Logs
   
   Sorry I can not get any of ERROR logs in apisix cause there is no error. 
What is more when I use mysql command or telnet, the log still have no change, 
got empty log response for TCP requests.
   
   ### Steps to Reproduce
   
   1. Then I tried telnet the port, while I got something:
   ```
   /# telnet 10.16.45.190 9100
   Trying 10.16.45.190...
   Connected to 10.16.45.190.
   Escape character is '^]'.
   <I enter something here>
   Wmysql_native_password!#08S01Got packets out of orderConnection closed by 
foreign host.
   ```
   which means the TCP connection test is pass, that is wired.
   
   2. Then I tried to catch some packts in mysql pod:
   ```
   /# tcpdump -i eth0 port 3306
   ```
   when I try to connect the sql with command mysql, nothing got, when I use 
telnet, we got some packetes.
   So I guess the apisix-istio-gateway had block the packets of mysql.
   
   ### Environment
   
   - APISIX Ingress controller version: 0.12.1 (installed with helm chart 
apisix1.6.2)
   - Kubernetes cluster version: 1.27.4
   - OS version if running APISIX Ingress controller in a bare-metal 
environment: Ubuntu22.04
   - Istio version: 1.19
   


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