k/external-dns: initial commit with DigitalOcean config
This commit is contained in:
parent
e83610ce47
commit
624a23d729
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: external-dns
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: viaduct.ai/v1
|
||||
kind: ksops
|
||||
metadata:
|
||||
name: ksops
|
||||
files:
|
||||
- ../digitalocean/digitalocean-config.enc.yaml
|
Loading…
Reference in New Issue