1
0
Fork 0

k/external-dns: initial commit with DigitalOcean config

This commit is contained in:
ryan-distrust.co 2023-05-14 15:07:05 -04:00
parent e83610ce47
commit 624a23d729
Signed by untrusted user who does not match committer: ryan
GPG Key ID: 8E401478A3FBEF72
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-dns
spec:
template:
spec:
containers:
- name: external-dns
args:
- --source=service
- --source=ingress
- --provider=digitalocean
- --registry=txt
- --txt-owner-id=external-dns
- --txt-prefix=_owner.
- --log-level=debug
env:
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: digitalocean
key: access-token

View File

@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: external-dns
resources:
- https://github.com/kubernetes-sigs/external-dns/kustomize?ref=d00387c92999e0c1530b144713a318bd1a5b6a17
- namespace.yaml
generators:
- secret-generator.yaml
patches:
- path: digitalocean-provider.yaml
target:
group: apps
version: v1
kind: Deployment
name: external-dns
images:
- name: registry.k8s.io/external-dns/external-dns
newTag: v0.13.4@sha256:b1ee7b829bd4c8bc5fbae0e4671cc423304a5a4c8228dc13e2c961c1e5eb90e4

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: external-dns

View File

@ -0,0 +1,6 @@
apiVersion: viaduct.ai/v1
kind: ksops
metadata:
name: ksops
files:
- ../digitalocean/digitalocean-config.enc.yaml