external-dns icon indicating copy to clipboard operation
external-dns copied to clipboard

mutiple hosts in ingress and set aws failover will update for all hosts

Open zoezhangmattr opened this issue 11 months ago • 1 comments

What happened:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/alias: 'true'
    external-dns.alpha.kubernetes.io/aws-failover: PRIMARY
    external-dns.alpha.kubernetes.io/aws-health-check-id: healthcheckid
    external-dns.alpha.kubernetes.io/hostname: a.example.com
    external-dns.alpha.kubernetes.io/set-identifier: test-example
spec:
  rules:
    - host: a.example.com
      http:
        paths:
          - path: /*
            pathType: ImplementationSpecific
            backend:
              service:
                name: myservice
                port:
                  number: 8080
   - host: b.example.com
      http:
        paths:
          - path: /*
            pathType: ImplementationSpecific
            backend:
              service:
                name: myservice
                port:
                  number: 8080

external-dns and alb controller are set up using annotations in ingress like above, the failover config will be updated to both hostnames a.example.com and b.example.com What you expected to happen: failover config should be only for a.example.com i only want to config failover for specific host, and not all the hosts How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): 0.11.0
  • DNS provider: aws
  • Others:

zoezhangmattr avatar Mar 22 '24 02:03 zoezhangmattr