i'm using aks cluster and traefik ingress and i'm using external-dns to update my records . i installed my traefik ingress and he's working fine this my variables for helm :
additionalArguments:
- "--accesslog=true"
- "--accesslog.format=json"
- "--log.level=DEBUG"
deployment:
replicas: 1
service:
spec:
loadBalancerIP: 20.151.201.38
annotations:
"service.beta.kubernetes.io/azure-load-balancer-resource-group": "aks-test"
kubernetesIngress:
publishedService:
enabled: true
and this is my ingress manifest :
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: web
external-dns.alpha.kubernetes.io/hostname: app.juicyreviewz.com
external-dns.alpha.kubernetes.io/target: juicyreviewz.com
spec:
rules:
- host: app.juicyreviewz.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app1-nginx-service
port:
number: 80
and after running this manifests the record is created but i got this error from external-dns pod :
time="2023-01-11T14:49:57Z" level=info msg="All records are already up to date"
time="2023-01-11T14:50:57Z" level=info msg="Updating CNAME record named 'app' to 'juicyreviewz.com' for Azure DNS zone 'juicyreviewz.com'."
time="2023-01-11T14:50:58Z" level=info msg="Updating TXT record named 'app' to '\"heritage=external-dns,external-dns/owner=default,external-dns/resource=ingress/default/my-ingress\"' for Azure DNS zone 'juicyreviewz.com'."
time="2023-01-11T14:51:00Z" level=error msg="Failed to update TXT record named 'app' to '\"heritage=external-dns,external-dns/owner=default,external-dns/resource=ingress/default/my-ingress\"' for DNS zone 'juicyreviewz.com': dns.RecordSetsClient#CreateOrUpdate: Failure sending request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=<nil> <nil>"
and this is the output of kubectl get ingress :
NAME CLASS HOSTS ADDRESS PORTS AGE
my-ingress <none> app.juicyreviewz.com 80 9m57s