Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
feat(externaldns): Yeet bind
Browse files Browse the repository at this point in the history
  • Loading branch information
doonga committed May 26, 2024
1 parent a626e4f commit a4a28dd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ spec:
name: externaldns-internal-secrets
creationPolicy: Owner
data:
- secretKey: bind_rndc_algorithm
- secretKey: externaldns_internal_pass
remoteRef:
key: bind
property: externaldns_algorithm
- secretKey: bind_rndc_secret
remoteRef:
key: bind
property: externaldns_secret
key: Unifi Controller
property: externaldns_internal
43 changes: 20 additions & 23 deletions kubernetes/main/apps/network/external-dns/internal/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,29 @@ spec:
domainFilters:
- greyrock.casa

env:
- name: EXTERNAL_DNS_RFC2136_HOST
value: "10.1.1.11"
- name: EXTERNAL_DNS_RFC2136_PORT
value: "53"
- name: EXTERNAL_DNS_RFC2136_ZONE
value: "greyrock.casa"
- name: EXTERNAL_DNS_RFC2136_TSIG_AXFR
value: "true"
- name: EXTERNAL_DNS_RFC2136_TSIG_KEYNAME
value: externaldns
- name: EXTERNAL_DNS_RFC2136_TSIG_SECRET_ALG
valueFrom:
secretKeyRef:
name: externaldns-internal-secrets
key: bind_rndc_algorithm
- name: EXTERNAL_DNS_RFC2136_TSIG_SECRET
valueFrom:
secretKeyRef:
name: externaldns-internal-secrets
key: bind_rndc_secret
provider:
name: webhook
webhook:
image:
repository: ghcr.io/kashalls/external-dns-unifi-webhook
tag: v0.0.6
env:
- name: UNIFI_HOST
value: https://10.1.1.1
- name: UNIFI_USER
value: externaldns
- name: UNIFI_PASS
valueFrom:
secretKeyRef:
name: externaldns-internal-secrets
key: externaldns_internal_pass
- name: LOG_LEVEL
value: debug

podAnnotations:
secret.reloader.stakater.com/reload: externaldns-internal-secrets

policy: sync
provider: rfc2136

resources:
requests:
Expand All @@ -64,7 +60,8 @@ spec:
- ingress
- service

txtPrefix: "k8s."
txtOwnerId: main
txtPrefix: "k8s.main."

postRenderers:
- kustomize:
Expand Down
21 changes: 0 additions & 21 deletions kubernetes/main/apps/network/external-dns/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,3 @@ spec:
wait: true
dependsOn:
- name: external-secrets-stores
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname externaldns-unifi
namespace: flux-system
spec:
targetNamespace: network
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 10m
path: "./kubernetes/main/apps/network/external-dns/unifi"
prune: true
sourceRef:
kind: GitRepository
name: greyrock-ops-kubernetes
wait: true
dependsOn:
- name: external-secrets-stores

This file was deleted.

76 changes: 0 additions & 76 deletions kubernetes/main/apps/network/external-dns/unifi/helmrelease.yaml

This file was deleted.

This file was deleted.

0 comments on commit a4a28dd

Please sign in to comment.