The problem of apisix redirect to error address #13436
Unanswered
wuqilin999
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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:
ports:
port: 30524
protocol: "TCP"
apiVersion: "v1"
kind: "Service"
metadata:
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
namespace: "apisix"
spec:
ports:
port: 30524
protocol: "TCP"
targetPort: 30524
apiVersion: "gateway.networking.k8s.io/v1"
kind: "Gateway"
metadata:
name: "32051-apisix"
namespace: "apisix"
spec:
gatewayClassName: "apisix"
listeners:
protocol: "TCP"
port: 32051
allowedRoutes:
kinds:
infrastructure:
parametersRef:
group: "apisix.apache.org"
kind: "GatewayProxy"
name: "apisix-ingress-controller-config"
apiVersion: "gateway.networking.k8s.io/v1alpha2"
kind: "TCPRoute"
metadata:
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix-sh"
namespace: "apisix"
spec:
parentRefs:
name: "32051-apisix"
rules:
name: "csxm02ulex-45091f1bec0a4cb1ac7e5464ef8a0853-apisix"
------------------------------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:
ports:
port: 30514
protocol: "TCP"
apiVersion: "v1"
kind: "Service"
metadata:
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
namespace: "apisix"
spec:
ports:
port: 30514
protocol: "TCP"
targetPort: 30514
apiVersion: "gateway.networking.k8s.io/v1"
kind: "Gateway"
metadata:
name: "32004-apisix"
namespace: "apisix"
spec:
gatewayClassName: "apisix"
listeners:
protocol: "TCP"
port: 32004
allowedRoutes:
kinds:
infrastructure:
parametersRef:
group: "apisix.apache.org"
kind: "GatewayProxy"
name: "apisix-ingress-controller-config"
apiVersion: "gateway.networking.k8s.io/v1alpha2"
kind: "TCPRoute"
metadata:
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix-sh"
namespace: "apisix"
spec:
parentRefs:
name: "32004-apisix"
rules:
name: "csxm02ulex-46e3e06615544faaab58247336f95612-apisix"
------------------------------2 end-----------------------------------
Beta Was this translation helpful? Give feedback.
All reactions