diff --git a/helm-values/external-dns.yaml b/helm-values/external-dns.yaml new file mode 100644 index 0000000..9babe00 --- /dev/null +++ b/helm-values/external-dns.yaml @@ -0,0 +1,8 @@ +nodeSelector: + com.van-hemmen.role: gateway + com.van-hemmen.hosting: ovh +tolerations: + - key: "com.van-hemmen.role" + operator: "Equal" + value: "gateway" + effect: "NoSchedule" diff --git a/scripts/04_install_external_dns.sh b/scripts/04_install_external_dns.sh old mode 100644 new mode 100755 index 098b81a..05e87a4 --- a/scripts/04_install_external_dns.sh +++ b/scripts/04_install_external_dns.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e # Check if the Cloudflare API token is provided as an argument if [ -z "$1" ]; then @@ -17,10 +17,10 @@ helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update # Create the namespace for external DNS -kubectl create namespace external-dns +kubectl create namespace external-dns || true # Install the external-dns chart with the provided Cloudflare API token -helm install external-dns bitnami/external-dns --namespace external-dns \ +helm install external-dns bitnami/external-dns --namespace external-dns -f helm-values/external-dns.yaml \ --set provider=cloudflare \ --set cloudflare.apiToken="$CLOUDFLARE_API_TOKEN" \ --set txtOwnerId=external-dns