Kubernetes/external-dns

From Ever changing code
< Kubernetes
Revision as of 15:39, 19 May 2022 by Pio2pio (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

AWS - Route53

Deploy using Bitnami helm chart

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

HOSTED_ZONE_IDENTIFIER=Z09EXAMPLE # private zone, acme.eu.cloud
HOSTED_ZONE_NAME=acme.eu.cloud
helm upgrade --install external-dns bitnami/external-dns \
  --set provider=aws \
  --set aws.zoneType=public \
  --set txtOwnerId=$HOSTED_ZONE_IDENTIFIER \
  --set domainFilters[0]=$HOSTED_ZONE_NAME \
  --set aws.zoneType=private \
  --set policy=upsert-only \
  --set sources=\{service\,istio-gateway\} \
  --namespace external-dns \
  --create-namespace \
  --set dryRun=true \
  --dry-run

helm diff upgrade external-dns bitnami/external-dns \
  --set provider=aws \
  --set aws.zoneType=public \
  --set txtOwnerId=$HOSTED_ZONE_IDENTIFIER \
  --set domainFilters[0]=$HOSTED_ZONE_NAME \
  --set aws.zoneType=private \
  --set policy=upsert-only \
  --set sources=\{service\,istio-gateway\} \
  --namespace external-dns \
  --set dryRun=true

# Flags explained, additional to use:
#   --set namespace=external-dns # Limit sources of endpoints to a specific namespace (default: all namespaces)
#   --set dryRun=true # When enabled, prints DNS record changes rather than actually performing them

GCP - Cloud DNS

helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
helm repo list
helm repo update external-dns
helm search repo external-dns --versions

Resources