yunfhu edited a comment on issue #5775:
URL: https://github.com/apache/apisix/issues/5775#issuecomment-991911870
login apisix pod with kubectl exec command,I use the telnet command to
check the stream proxy route, it shows able route to mysql host
```
@MacBook-Pro APISIX % kubectl exec -it apisix-557f5f646f-r69z9 sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future
version. Use kubectl exec [POD] -- [COMMAND] instead.
sh-4.2# telnet localhost 9100
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
J
5.7.36@1->t-::kmLEXU'7Lmysql_native_password
```
but when I logout the pod and tried to request with the nodeport , the
connection was closed
```
@MacBook-Pro ~ % telnet localhost 30100
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
```
and here is the service information:
```
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP
PORT(S) AGE
default apisix NodePort 10.111.193.248 <none>
9080:30080/TCP,9100:30100/TCP 39m
```
```
@MacBook-Pro ~ % kubectl describe service apisix
Name: apisix
Namespace: default
Labels: io.kompose.service=apisix
Annotations: kompose.cmd: kompose convert
kompose.version: 1.24.0 (HEAD)
Selector: io.kompose.service=apisix
Type: NodePort
IP Families: <none>
IP: 10.111.193.248
IPs: <none>
LoadBalancer Ingress: localhost
Port: http-proxy 9080/TCP
TargetPort: 9080/TCP
NodePort: http-proxy 30080/TCP
Endpoints: 10.1.2.186:9080
Port: tcp-proxy 9100/TCP
TargetPort: 9100/TCP
NodePort: tcp-proxy 30100/TCP
Endpoints: 10.1.2.186:9100
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
```
--
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]