You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "szhengli (via GitHub)" <gi...@apache.org> on 2023/09/28 09:00:42 UTC
[GitHub] [apisix-ingress-controller] szhengli opened a new issue, #1991: how to route traffic to external (outside of kubernetes cluster) server by native ingress object ?
szhengli opened a new issue, #1991:
URL: https://github.com/apache/apisix-ingress-controller/issues/1991
### Issue description
because, the target server is outside of kubernetes cluster, first I try to create ExternalName type service and refer it in ingress object, it fails to sync with apsix. then . try the below, it can sync successfully. but fail to access http://local.httpbin.org/ui with "503 Service Temporarily Unavailable" error.
apiVersion: v1
kind: Service
metadata:
name: uidemo
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: v1
kind: Endpoints
metadata:
name: uidemo
labels:
endpointslice.kubernetes.io/managed-by: staff
subsets:
- addresses:
- ip: 192.168.3.150
ports:
- name: web
port: 80
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: httpbin-route
spec:
ingressClassName: apisix
rules:
- host: local.httpbin.org
http:
paths:
- backend:
service:
name: uidemo
port:
number: 80
path: /ui
pathType: Prefix
- backend:
service:
name: httpbin
port:
number: 80
path: /
pathType: Prefix
### Environment
apache/apisix-ingress-controller:1.6.1
--
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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1991: how to route traffic to external (outside of kubernetes cluster) server by native ingress object ?
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #1991:
URL: https://github.com/apache/apisix-ingress-controller/issues/1991#issuecomment-1739241999
Please format your contents first
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] how to route traffic to external (outside of kubernetes cluster) server by native ingress object ? [apisix-ingress-controller]
Posted by "szhengli (via GitHub)" <gi...@apache.org>.
szhengli closed issue #1991: how to route traffic to external (outside of kubernetes cluster) server by native ingress object ?
URL: https://github.com/apache/apisix-ingress-controller/issues/1991
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org