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

enable multivalue for headless service in external-dns #4933

Open
stanislavzaletskyi opened this issue Dec 5, 2024 · 0 comments
Open

enable multivalue for headless service in external-dns #4933

stanislavzaletskyi opened this issue Dec 5, 2024 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@stanislavzaletskyi
Copy link

stanislavzaletskyi commented Dec 5, 2024

we have running serverless pods, which amount changes dynamically (all has label app=pod):
pod1
pod2
....
pod10

this is my headless service for external-dns

kind: Service
apiVersion: v1
metadata:
  name: pods-svc
  labels:
    app: pods
  annotations:
    external-dns.alpha.kubernetes.io/aws-multi-value-answer: 'true'
    external-dns.alpha.kubernetes.io/endpoints-type: HostIP
    external-dns.alpha.kubernetes.io/hostname: pods.example.com
spec:
  ports:
    - protocol: TCP
      port: 443
      targetPort: 443
  selector:
    app: pod
  clusterIP: None
  clusterIPs:
    - None
  type: ClusterIP

Currently external-dns creates one pods.example.com A record and add all pod's HostIP into it (SimpleRouting):
pods.example.com = [1.1.1.1,2.2.2.2,..... ]

What would you like to be added:
My expectations that external-dns should create multiple A records in AWS Route53:
pods.example.com A record = 1.1.1.1
pods.example.com A record = 2.2.2.2
....

Why is this needed:
With multiple A records we can add healthchecks , failover per record.

@stanislavzaletskyi stanislavzaletskyi added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant