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

Getting error failed to create record: CNAME content cannot reference itself - cloudflare & traefik #4749

Closed
GameBurrow opened this issue Sep 17, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@GameBurrow
Copy link

GameBurrow commented Sep 17, 2024

What happened:
Using cloudflare provider, I get the following error, just inccase tried to change the domain also

time="2024-09-17T08:14:16Z" level=info msg="Instantiating new Kubernetes client"
time="2024-09-17T08:14:16Z" level=info msg="Using inCluster-config based on serviceaccount-token"
time="2024-09-17T08:14:16Z" level=info msg="Created Kubernetes client https://10.43.0.1:443"
time="2024-09-17T08:14:16Z" level=info msg="Using inCluster-config based on serviceaccount-token"
time="2024-09-17T08:14:16Z" level=info msg="Created Dynamic Kubernetes client https://10.43.0.1:443"
time="2024-09-17T08:14:29Z" level=info msg="Changing record." action=CREATE record=ss.sepaurg.eu ttl=1 type=CNAME zone=62b51f06006da5af2c1c024f05091731
time="2024-09-17T08:14:29Z" level=error msg="failed to create record: CNAME content cannot reference itself. (9039)" action=CREATE record=ss.sepaurg.eu ttl=1 type=CNAME zone=62b51f06006da5af2c1c024f05091731
time="2024-09-17T08:14:29Z" level=info msg="Changing record." action=CREATE record=ss.sepaurg.eu ttl=1 type=TXT zone=62b51f06006da5af2c1c024f05091731
time="2024-09-17T08:14:30Z" level=info msg="Changing record." action=CREATE record=cname-ss.sepaurg.eu ttl=1 type=TXT zone=62b51f06006da5af2c1c024f05091731
time="2024-09-17T08:14:30Z" level=fatal msg="Failed to do run once: failed to submit all changes for the following zones: [62b51f06006da5af2c1c024f05091731]"

Environment:

  • External-DNS version (use external-dns --version): v0.15.0
  • DNS provider: Cloudflare
  • Others: traefik ingressroute

This my external-dns deployment configuration:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: external-dns
spec:
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: external-dns
  template:
    metadata:
      labels:
        app: external-dns
    spec:
      serviceAccountName: external-dns
      containers:
        - name: external-dns
          image: registry.k8s.io/external-dns/external-dns:v0.15.0
          args:
            # - --domain-filter=example.com # (optional) limit to only example.com domains; change to match the zone created above.
            # - --zone-id-filter=023e105f4ecef8ad9ca31a8372d0c353 # (optional) limit to a specific zone.
            - --provider=cloudflare
            - --cloudflare-proxied # (optional) enable the proxy feature of Cloudflare (DDOS protection, CDN...)
            # - --cloudflare-dns-records-per-page=5000 # (optional) configure how many DNS records to fetch per request
          env:
            - name: EXTERNAL_DNS_SOURCE
              value: |-
                service
                ingress
                traefik-proxy
            - name: CF_API_TOKEN
              valueFrom:
                secretKeyRef:
                  name: cloudflare-api-key
                  key: apitoken
@GameBurrow GameBurrow added the kind/bug Categorizes issue or PR as related to a bug. label Sep 17, 2024
@GameBurrow GameBurrow changed the title Getting error failed to create record: CNAME content cannot reference itself. Getting error failed to create record: CNAME content cannot reference itself - cloudflare Sep 18, 2024
@GameBurrow GameBurrow changed the title Getting error failed to create record: CNAME content cannot reference itself - cloudflare Getting error failed to create record: CNAME content cannot reference itself - cloudflare & traefik Sep 18, 2024
@GameBurrow
Copy link
Author

Nvm, I'm I'm stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant