Skip to content

Commit

Permalink
fix(argocd): external-dns
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed Dec 17, 2023
1 parent 58b0017 commit 4ce0887
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 41 deletions.
1 change: 0 additions & 1 deletion argocd/appprojects/dns-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
spec:
description: Managing external DNS
sourceRepos:
- https://github.com/isac322/homelab.git
- https://kubernetes-sigs.github.io/external-dns/
destinations:
- namespace: dns-manager
Expand Down
38 changes: 3 additions & 35 deletions argocd/appsets/external-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,6 @@ spec:
limit: 100
syncOptions:
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: external-dns-cf-api-token
spec:
generators:
- list:
elements:
- cluster: backbone
- cluster: prod
template:
metadata:
name: '{{cluster}}-external-dns-cf-api-token'
spec:
destination:
name: '{{cluster}}'
namespace: dns-manager
project: dns-manager
source:
path: apps/objects/external-dns
repoURL: https://github.com/isac322/homelab.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 100
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
homelab.bhyoo.com/cloudflare-ca-required: 'true'
4 changes: 2 additions & 2 deletions values/external-dns/backbone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ env:
- name: CF_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-api-token
key: cloudflare_api_token
name: cloudflare-origin-ca-api-key
key: token

resources:
requests:
Expand Down
6 changes: 3 additions & 3 deletions values/external-dns/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ env:
- name: CF_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-api-token
key: cloudflare_api_token
name: cloudflare-origin-ca-api-key
key: token

resources:
requests:
Expand All @@ -28,7 +28,7 @@ sources:
policy: sync

registry: txt
txtOwnerId: k8s-oracle-cloud-bhyoo
txtOwnerId: k8s-vultr

domainFilters:
- bhyoo.com
Expand Down

0 comments on commit 4ce0887

Please sign in to comment.