Skip to content

Commit

Permalink
feat(core): external-dns-adguard
Browse files Browse the repository at this point in the history
  • Loading branch information
nold committed Aug 5, 2024
1 parent 83881e3 commit a931c69
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
11 changes: 11 additions & 0 deletions projects/core/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ apps:
keys:
- CF_API_TOKEN

- name: external-dns-adguard
repoURL: https://kubernetes-sigs.github.io/external-dns
chart: external-dns
targetRevision: 1.14.5
secrets:
- name: adguard-config
keys:
- ADGUARD_URL
- ADGUARD_USER
- ADGUARD_PASSWORD

- name: cert-manager
namespace: cert-manager
repoURL: https://charts.jetstack.io
Expand Down
105 changes: 105 additions & 0 deletions projects/core/values/external-dns-adguard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Default values for external-dns.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image:
repository: registry.k8s.io/external-dns/external-dns
tag: "v0.14.2"
pullPolicy: IfNotPresent

shareProcessNamespace: false

podSecurityContext:
fsGroup: 65534

securityContext:
runAsNonRoot: true
runAsUser: 65534
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]

# Defaults to `ClusterFirst`.
# Valid values are: `ClusterFirstWithHostNet`, `ClusterFirst`, `Default` or `None`.
dnsPolicy:

serviceMonitor:
enabled: false
additionalLabels: {}
interval: 1m
scrapeTimeout: 10s

resources:
limits:
memory: 50Mi
cpu: 200m
requests:
memory: 50Mi
cpu: 10m

logLevel: info
logFormat: text

interval: 1m
triggerLoopOnEvent: false

sources:
- ingress
# - service

policy: upsert-only

registry: txt
txtOwnerId: ""
txtPrefix: ""
txtSuffix: ""

domainFilters:
- dc


#extraArgs:

deploymentStrategy:
type: Recreate

provider:
name: webhook
webhook:
image:
repository: ghcr.io/muhlba91/external-dns-provider-adguard
tag: latest
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
env:
- name: LOG_LEVEL
value: debug
- name: ADGUARD_URL
valueFrom:
secretKeyRef:
name: adguard-config
key: ADGUARD_URL
- name: ADGUARD_USER
valueFrom:
secretKeyRef:
name: adguard-config
key: ADGUARD_USER
- name: ADGUARD_PASSWORD
valueFrom:
secretKeyRef:
name: adguard-config
key: ADGUARD_PASSWORD
- name: SERVER_HOST
value: "0.0.0.0"
- name: DRY_RUN
value: "false"

0 comments on commit a931c69

Please sign in to comment.