production external-dns overlay

This commit is contained in:
Victor Barba Martin 2021-11-18 17:20:53 +01:00
parent 8b3f459971
commit b22d0515cc
6 changed files with 52 additions and 3 deletions

View File

@ -8,7 +8,7 @@ spec:
namespace: external-dns
server: 'https://kubernetes.default.svc'
source:
path: k8s/external-dns
path: k8s/external-dns/overlays/{{ .Values.environment }}
repoURL: 'git@bitbucket.org:jamkazam/video-iac.git'
targetRevision: HEAD
project: default

View File

@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: external-dns
resources:
- https://github.com/kubernetes-sigs/external-dns/kustomize?ref=v0.8.0

View File

@ -0,0 +1,28 @@
---
- op: replace
path: /spec/template/spec/containers/0/args
value:
- --aws-api-retries=3
- --domain-filter=video.jamkazam.com
- --interval=1m
- --log-format=text
- --log-level=warning
- --no-aws-evaluate-target-health
- --policy=sync
- --provider=aws
- --registry=txt
- --source=ingress
- --txt-prefix=production_ # Random string for hardener TXT entries
- op: replace
path: /spec/template/spec/containers/0/env
value:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-user-external-dns
key: username
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-user-external-dns
key: password

View File

@ -0,0 +1,14 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
patchesJson6902:
- path: configuration.yaml
target:
group: apps
version: v1
kind: Deployment
name: external-dns

View File

@ -12,7 +12,7 @@
- --provider=aws
- --registry=txt
- --source=ingress
- --txt-prefix=fmifrruf_ # Random string for hardener TXT entries
- --txt-prefix=staging_ # Random string for hardener TXT entries
- op: replace
path: /spec/template/spec/containers/0/env
value:

View File

@ -7,7 +7,7 @@ resources:
- https://github.com/kubernetes-sigs/external-dns/kustomize?ref=v0.8.0
patchesJson6902:
- path: overlays/configuration.yaml
- path: configuration.yaml
target:
group: apps
version: v1