Open rkujawa opened 1 year ago
currently we don't support use external endpoints. We expect all endpoints to be a Pod(so we can grant inbound permission to allow traffic from ALB).
/kind feature
nginx ingress
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
Passage of time does not cause the issue to magically get solved.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The issue exists, you insensitive clod.
Is your feature request related to a problem? I'd like to be able to create
Ingress
that forwards traffic to a web service outside of Kubernetes cluster. Currently this is not possible, even if suchService
itself works in Kubernetes.Consider the following
Service
andEndpoints
:Such configuration is correct from Kubernetes perspective and works just fine within the cluster (i.e.
Pod
is able to connect to the service using namemyservice-web
).I can attempt creating an Ingress using configuration like:
Curiously, this creates an appropriate
Ingress
resource without errors. However corresponding EC2 Target Group is empty. I suspect this is due to all the checks fortargetRef
in https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/9333126df4f59554fae672a6511d5ae3fbee3171/pkg/backend/endpoint_resolver.go#L143 . As I understand, currently ALB controller can only configure balancers that forward traffic to Pods.I know this may not be a popular use case, but my whole DevOps tooling is based around Kubernetes and it's very cumbersome to use other tools just to manage this special case. Please consider adding an option to forward traffic outside of the cluster if so the user desires.
Describe the solution you'd like Allow using
Service
withEndpoints
that do not havetargetRef
set forIngress
configuration purposes.Describe alternatives you've considered I am aware of
TargetGroupBinding
resource, but it does not solve my problem - I'd still need to manage whole ALB configuration outside of Kubernetes. Besides, I guess this resource also expects a target running inside of the cluster.