external-dns

by joaquinito2051

Helm chartv1.5.4App 0.5.14

ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.

About this chart

external-dns

ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.

TL;DR;

$ helm install <helm-repo>/external-dns

$ helm install bitnami/external-dns

Introduction

This chart bootstraps a ExternalDNS deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/external-dns

$ helm install --name my-release bitnami/external-dns The command deploys ExternalDNS on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the external-dns chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.registryExternalDNS image registrydocker.io
image.repositoryExternalDNS Image namebitnami/external-dns
image.tagExternalDNS Image tag{VERSION}
image.pullPolicyExternalDNS image pull policyAlways
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.debugSpecify if debug values should be setfalse
sourcesList of resource types to be observed for new DNS entries by ExternalDNS[service, ingress]
providerDNS provider where the DNS records will be created (mandatory). E.g.: aws, azure, google, ...nil
publishInternalServicesWhether to publish DNS records for ClusterIP services or notfalse
policyMethod to synchronise DNS records between sources and providers (accepted values: sync, upsert-only)upsert-only
registryRegistry type (accepted values: txt, noop)txt
txtOwnerIdTXT Registry Identifier"default"
txtPrefixPrefix to create a TXT record with a name following the pattern prefix.nil
logLevelVerbosity of the ExternalDNS logs (accepted values: panic, debug, info, warn, error, fatal)info
domainFiltersLimit possible target zones by domain suffixes[]
annotationFilterFilter sources managed by external-dns via annotation using label selector semanticsnil
extraArgsExtra Arguments to passed to external-dns{}
extraEnvExtra env. variable to set on external-dns container{}
aws.accessKeyAWS_ACCESS_KEY_ID to set (only if provider == 'aws')""
aws.secretKeyAWS_SECRET_ACCESS_KEY to set (only if provider == 'aws')""
aws.regionAWS_DEFAULT_REGION to set (only if provider == 'aws')us-east-1
aws.roleArnUse this role_arn if role credentials are used (only if provider == 'aws')""
aws.zoneTypeFilter for zones of this type (only if provider == 'aws', accepted values: public, private)""
azure.resoureGroupAzure Resource Group (only if provider == 'azure')""
cloudflare.apiKeyCF_API_KEY to set in the environment (only if provider == 'cloudflare')""
cloudflare.emailCF_API_EMAIL to set in the environment (only if provider == 'cloudflare')""
google.projectGoogle project (only if provider == 'google')""
google.serviceAccountSecretSecret which contains credentials.json for Google (only if provider == 'google')""
service.typeKubernetes Service typeClusterIP
service.portExternalDNS client port7979
service.nodePortPort to bind to for NodePort service type (client port)nil
service.annotationsAnnotations for ExternalDNS service{}
service.loadBalancerIPloadBalancerIP if ExternalDNS service type is LoadBalancernil
rbac.createWether to create & use RBAC resources or notfalse
rbac.serviceAccountNameServiceAccount (ignored if rbac.create == true)default
rbac.apiVersionVersion of the RBAC APIv1beta1
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container1001
securityContext.runAsUserUser ID for the container1001
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
podAnnotationsAdditional annotations to apply to the pod.{}
replicasDesired number of ExternalDNS replicas1
resourcesCPU/Memory resource requests/limitsMemory: 256Mi, CPU: 250m
livenessProbe.enabledTurn on and off liveness probetrue
livenessProbe.initialDelaySecondsDelay before liveness probe is initiated10
livenessProbe.periodSecondsHow often to perform the probe10
livenessProbe.timeoutSecondsWhen the probe times out5
livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded.2
livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed1
readinessProbe.enabledTurn on and off readiness probetrue
readinessProbe.initialDelaySecondsDelay before liveness probe is initiated5
readinessProbe.periodSecondsHow often to perform the probe10
readinessProbe.timeoutSecondsWhen the probe times out5
readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded.6

Deploy external-dns with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has external-dns on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartexternal-dns is pinned at v1.5.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply