-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Support A record for multile IPs for a headless services. #645
Support A record for multile IPs for a headless services. #645
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
I see that this is fixing a bug, but in general, shouldn't it be a configurable option if you want |
In AWS, the case b is not possible. |
I meant for case b) that the pod name (which has usually either a sequential number in it for static sets or a random string for replica sets) could be part of the hostname. E.g. a pod is named If I understand you pull request correctly, it will completely remove the ability to do that. |
More specifically I'm talking about the host port use case: Nevertheless, even the usecase you mentioned is possible. You can simply created weighted or multi value records in Route53 which would allow to have multiple instances of the same record name (e.g. |
Ok, I got it. In replica set case, pod names are unique, but the hostnames are same because it is given by the
My motivation is exactly creating multi value records for headless service with replica set. |
Non statefulset pods associating to a headless service have different IPs, but have a same hostname. In this case, external-dns registered only one A record due to attempting to register multiple A records for a same hostname for each IP. This patch now registers one A record having multiple IPs.
cbf2bbe
to
44f319e
Compare
Any chance to get that merged? |
Struggling with the same problem, it will be extremely helpful to have a fix for the issue. |
This would be really helpful, indeed. Can we have that merged please? |
Thanks, this PR works very well in our env. Our use case is that we use AWS CNI plugin that gives real VPC IPs to pods we want to expose via R53. Look forward to having this merged! |
@njuettner @linki let's review this one, do you have capacity? It looks like it was open for a long time. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: njuettner The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Non statefulset pods associating to a headless service have different
IPs, but have a same hostname. In this case, external-dns registered
only one A records due to attempting to register multiple A records for
a same hostname for each IP.
This patch now registers one A record having multiple IPs.
fixes #549