wuqilin999 opened a new issue, #13438:
URL: https://github.com/apache/apisix/issues/13438
### Description
**1. The first yaml, apisix ip and port: 10.2.139.56:32051--> backend
service ip and port: 192.168.40.8:30524
2. The second yaml, apisix ip and port: 10.2.139.56:32004--> backend service
ip and port: 192.168.40.7:30514
But when I try to visit the 10.2.139.56:32051 and 10.2.139.56:32004, the
apisix all redirect to 192.168.40.7:30514.**
**------------------------------1 start-----------------------------------**
---
apiVersion: "discovery.k8s.io/v1"
kind: "EndpointSlice"
metadata:
labels:
kubernetes.io/service-name:
"csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
namespace: "apisix"
addressType: "IPv4"
endpoints:
- addresses:
- "192.168.40.8"
ports:
- name: "sh"
port: 30524
protocol: "TCP"
---
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
namespace: "apisix"
spec:
ports:
- name: "sh"
port: 30524
protocol: "TCP"
targetPort: 30524
---
---
apiVersion: "gateway.networking.k8s.io/v1"
kind: "Gateway"
metadata:
name: "32051-tcp-apisix"
namespace: "apisix"
spec:
gatewayClassName: "apisix"
listeners:
- name: "l-40fda96c-bd9f-34c8-a7de-f6ae92c12f52"
protocol: "TCP"
port: 32051
allowedRoutes:
kinds:
- kind: "TCPRoute"
infrastructure:
parametersRef:
group: "apisix.apache.org"
name: "apisix-ingress-controller-config"
kind: "GatewayProxy"
---
---
apiVersion: "gateway.networking.k8s.io/v1alpha2"
kind: "TCPRoute"
metadata:
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix-sh"
namespace: "apisix"
spec:
parentRefs:
- sectionName: "l-40fda96c-bd9f-34c8-a7de-f6ae92c12f52"
name: "32051-tcp-apisix"
rules:
- backendRefs:
- name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
port: 30524
---
**------------------------------1 end-----------------------------------**
**------------------------------2 start-----------------------------------**
---
apiVersion: "discovery.k8s.io/v1"
kind: "EndpointSlice"
metadata:
labels:
kubernetes.io/service-name:
"csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
namespace: "apisix"
addressType: "IPv4"
endpoints:
- addresses:
- "192.168.40.7"
ports:
- name: "sh"
port: 30514
protocol: "TCP"
---
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
namespace: "apisix"
spec:
ports:
- name: "sh"
port: 30514
protocol: "TCP"
targetPort: 30514
---
---
apiVersion: "gateway.networking.k8s.io/v1"
kind: "Gateway"
metadata:
name: "32004-tcp-apisix"
namespace: "apisix"
spec:
gatewayClassName: "apisix"
listeners:
- name: "l-40f14db4-9d6f-3f01-a531-c247cadf266c"
protocol: "TCP"
port: 32004
allowedRoutes:
kinds:
- kind: "TCPRoute"
infrastructure:
parametersRef:
group: "apisix.apache.org"
name: "apisix-ingress-controller-config"
kind: "GatewayProxy"
---
---
apiVersion: "gateway.networking.k8s.io/v1alpha2"
kind: "TCPRoute"
metadata:
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix-sh"
namespace: "apisix"
spec:
parentRefs:
- sectionName: "l-40f14db4-9d6f-3f01-a531-c247cadf266c"
name: "32004-tcp-apisix"
rules:
- backendRefs:
- name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
port: 30514
---
**------------------------------2 end-----------------------------------**
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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]