Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an annotation to disable appending private NLB IP address to service external IPs #394

Open
Matthew-Beckett opened this issue Jul 4, 2022 · 4 comments

Comments

@Matthew-Beckett
Copy link

Matthew-Beckett commented Jul 4, 2022

Is this a BUG REPORT or FEATURE REQUEST?

Choose one: FEATURE REQUEST

When creating a Service of type LoadBalancer it's ExternalIPs value will be used by components such as external-dns to create A records for traffic routing, however, as the private internal IPv4 address of the NLB is appended to the Ingress IPs property of the LoadBalancerStatus returned to service and both the public IPv4 and private IPv4 are added to DNS.

It would be helpful to disable this functionality when external-dns, or other components which reference this property and expect only public IP addresses are deployed.

kubernetes-sigs/external-dns#2810 - Issue discussing this in external-dns

@robert-heinzmann-logmein

+1

Note: Workaround is to enforce the External-DNS record e.g. using kyverno policy and external-dns.alpha.kubernetes.io/target annotation injection based on status.loadBalancer.ingress[] field.

@milanof-huma
Copy link

Almost all cloud providers that we use support a way to create a LB with only public address or enforce it through flag. Please have a look if possible to implement such feature

@fdelucchijr
Copy link

I know this is only a work-around, but I solved my problem using kubernetes-sigs/external-dns/pull/2693, I left my values.yaml into kubernetes-sigs/external-dns/issues/2048#issuecomment-1227395102 for reference.

@Matthew-Beckett
Copy link
Author

Workaround has been provided in external-dns to exclude address ranges such as RFC1918.

kubernetes-sigs/external-dns#2693

I'm honestly disappointed on Oracle's behalf they had to patch something in for this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants