Configure for cloudflare using dnsendpoint.

This commit is contained in:
Joseph Hanson 2024-01-12 09:56:15 -06:00
parent 174a4fb32a
commit 4f0b486385

View file

@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: external-dns chart: external-dns
version: 1.13.1 version: 1.14.1
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: kubernetes-sigs-external-dns name: kubernetes-sigs-external-dns
@ -20,9 +20,6 @@ spec:
values: values:
fullnameOverride: *name fullnameOverride: *name
domainFilters:
- hsn.dev
env: env:
- name: CF_API_TOKEN - name: CF_API_TOKEN
valueFrom: valueFrom:
@ -30,16 +27,33 @@ spec:
name: externaldns-hsn-dev-secrets name: externaldns-hsn-dev-secrets
key: cloudflare_api_token key: cloudflare_api_token
domainFilters:
- hsn.dev
policy: sync
provider: cloudflare
sources:
- ingress
- crd
txtPrefix: "k8s."
extraArgs: extraArgs:
args:
- --cloudflare-proxied
- --crd-source-apiversion=externaldns.k8s.io/v1alpha1 - --crd-source-apiversion=externaldns.k8s.io/v1alpha1
- --ingress-class=hsn-nginx - --crd-source-kind=DNSEndpoint
- --ingress-class=external
- --interval=1m
- --log-format=text
- --log-level=info
- --registry=txt
- --txt-owner-id=default
serviceMonitor:
enabled: true
podAnnotations: podAnnotations:
secret.reloader.stakater.com/reload: externaldns-hsn-dev-secrets secret.reloader.stakater.com/reload: externaldns-hsn-dev-secrets
policy: sync
provider: cloudflare
resources: resources:
requests: requests:
cpu: 5m cpu: 5m
@ -47,15 +61,6 @@ spec:
limits: limits:
memory: 100Mi memory: 100Mi
serviceMonitor:
enabled: true
sources:
- ingress
- crd
txtPrefix: "k8s."
postRenderers: postRenderers:
- kustomize: - kustomize:
patches: patches: