bitnamicharts/external-dns

Verified Publisher

By VMware

Updated 11 months ago

Bitnami Helm chart for ExternalDNS

Helm
Image
Networking
Integration & delivery
0

10M+

bitnamicharts/external-dns repository overview

Bitnami Secure Images Helm chart for ExternalDNS

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

Overview of ExternalDNS

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/external-dns

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository.

Introduction

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

Before you begin

  • Kubernetes 1.23+
  • Helm 3.8.0+

Installing the Chart

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

helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/external-dns

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts.

The command deploys ExternalDNS on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Configuration and installation details

This section describes credentials, configuration, and other installation options.

Resource requests and limits

Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the resources value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.

To make this process easier, the chart contains the resourcesPreset values, which automatically sets the resources section according to different presets. Check these presets in the bitnami/common chart. However, in production workloads using resourcesPreset is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the official Kubernetes documentation.

Rolling VS Immutable tags

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

Prometheus metrics

This chart can be integrated with Prometheus by setting metrics.enabled to true. This will expose external-dns native Prometheus endpoint in the service. It will have the necessary annotations to be automatically scraped by Prometheus.

Prometheus requirements

It is necessary to have a working installation of Prometheus or Prometheus Operator for the integration to work. Install the Bitnami Prometheus helm chart or the Bitnami Kube Prometheus helm chart to easily have a working Prometheus in your cluster.

Integration with Prometheus Operator

The chart can deploy ServiceMonitor objects for integration with Prometheus Operator installations. To do so, set the value metrics.serviceMonitor.enabled=true. Ensure that the Prometheus Operator CustomResourceDefinitions are installed in the cluster or it will fail with the following error:

no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"

Install the Bitnami Kube Prometheus helm chart for having the necessary CRDs and the Prometheus Operator.

Backup and restore

To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using Velero, a Kubernetes backup/restore tool. Find the instructions for using Velero in this guide.

Setting Pod's affinity

This chart allows you to set your custom affinity using the affinity parameter. Find more information about Pod's affinity in the kubernetes documentation.

As an alternative, you can use of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset, podAntiAffinityPreset, or nodeAffinityPreset parameters.

Using IRSA

If you are deploying to AWS EKS and you want to leverage IRSA. You will need to override fsGroup and runAsUser with 65534(nfsnobody) and 0 respectively. Otherwise service account token will not be properly mounted. You can use the following arguments:

--set podSecurityContext.fsGroup=65534 --set podSecurityContext.runAsUser=0
Webhook Providers

Webhook providers allow integrating ExternalDNS with DNS providers through an HTTP interface. This approach decouples ExternalDNS and the Providers code which can be running in separate processes.

With the Bitnami ExternalDNS chart, you can deploy Webhook Providers and configure ExternalDNS easily using sidecars and extraArgs values:

provider: webhook

extraArgs:
  webhook-provider-url: http://localhost:8080
  txt-prefix: reg-

sidecars:
  - name: my-webhook
    image: <external-dns-webhook-image>
    ports:
      - containerPort: 8080
        name: http
    livenessProbe:
      httpGet:
        path: /
        port: http
      initialDelaySeconds: 10
      timeoutSeconds: 5
    readinessProbe:
      tcpSocket:
        port: http
      initialDelaySeconds: 10
      timeoutSeconds: 5
    env:
      - name: <WEBHOOK-CONFIG-ENV-VAR>
        value: TEST
      ...

More information about these new providers can be found in the ExternalDNS documentation

FIPS parameters

The FIPS parameters only have effect if you are using images from the Bitnami Secure Images catalog.

For more information on this new support, please refer to the FIPS Compliance section.

Tutorials

Find information about the requirements for each DNS provider on the link below:

For instance, to install ExternalDNS on AWS, you need to:

  • Provide the K8s worker node which runs the cluster autoscaler with a minimum IAM policy (check IAM permissions docs for more information).
  • Setup a hosted zone on Route53 and annotate the Hosted Zone ID and its associated "nameservers" as described on these docs.
  • Install ExternalDNS chart using the command below:

Note: replace the placeholder HOSTED_ZONE_IDENTIFIER and HOSTED_ZONE_NAME, with your hosted zoned identifier and name, respectively.

helm install my-release \
  --set provider=aws \
  --set aws.zoneType=public \
  --set txtOwnerId=HOSTED_ZONE_IDENTIFIER \
  --set domainFilters[0]=HOSTED_ZONE_NAME \
  oci://REGISTRY_NAME/REPOSITORY_NAME/external-dns

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts.

Parameters

The following subsections list global, common, and component-specific parameters.

Global parameters
NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.defaultFipsDefault value for the FIPS configuration (allowed values: '', restricted, relaxed, off). Can be overridden by the 'fips' objectrestricted
global.security.allowInsecureImagesAllows skipping image verificationfalse
global.compatibility.openshift.adaptSecurityContextAdapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)auto
Common parameters
NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
namespaceOverrideString to fully override common.names.namespace""
clusterDomainKubernetes Cluster Domaincluster.local
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template).[]
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
external-dns parameters
NameDescriptionValue
image.registryExternalDNS image registryREGISTRY_NAME
image.repositoryExternalDNS image repositoryREPOSITORY_NAME/external-dns
image.digestExternalDNS image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyExternalDNS image pull policyIfNotPresent
image.pullSecretsExternalDNS image pull secrets[]
revisionHistoryLimitsets number of replicaset to keep in k8s10
automountServiceAccountTokenMount Service Account token in podtrue
hostAliasesDeployment pod host aliases[]
updateStrategyupdate strategy type{}
commandOverride kiam default command[]
argsOverride kiam default args[]
sourcesK8s resources type to be observed for new DNS entries by ExternalDNS[]
providerDNS provider where the DNS records will be created.aws
initContainersAttach additional init containers to the pod (evaluated as a template)[]
dnsPolicySpecifies the DNS policy for the external-dns deployment""
dnsConfigallows users more control on the DNS settings for a Pod. Required if dnsPolicy is set to None{}
sidecarsAttach additional containers to the pod (evaluated as a template)[]
namespaceLimit sources of endpoints to a specific namespace (default: all namespaces)""
watchReleaseNamespaceWatch only namespace used for the releasefalse
fqdnTemplatesTemplated strings that are used to generate DNS names from sources that don't define a hostname themselves[]
containerPorts.httpHTTP Container port7979
combineFQDNAnnotationCombine FQDN template and annotations instead of overwritingfalse
ignoreHostnameAnnotationIgnore hostname annotation when generating DNS names, valid only when fqdn-template is setfalse
publishInternalServicesAllow external-dns to publish DNS records for ClusterIP servicesfalse
publishHostIPAllow external-dns to publish host-ip for headless servicesfalse
serviceTypeFilterThe service types to take care about (default: all, options: ClusterIP, NodePort, LoadBalancer, ExternalName)[]
validation.enabledEnable chart validationtrue
akamai.hostHostname to use for EdgeGrid auth""
akamai.accessTokenAccess Token to use for EdgeGrid auth""
akamai.clientTokenClient Token to use for EdgeGrid auth""
akamai.clientSecretWhen using the Akamai provider, AKAMAI_CLIENT_SECRET to set (optional)""
akamai.secretNameUse an existing secret with key "akamai_api_seret" defined.""
alibabacloud.accessKeyIdWhen using the Alibaba Cloud provider, set accessKeyId in the Alibaba Cloud configuration file (optional)

Note: the README for this chart is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at https://techdocs.broadcom.com/us/en/vmware-tanzu/bitnami-secure-images/bitnami-secure-images/services/bsi-app-doc/apps-charts-external-dns-index.html

Tag summary

Content type

Image

Digest

sha256:2538e4788

Size

7.8 kB

Last updated

11 months ago

docker pull bitnamicharts/external-dns:sha256-c1e6e796585ff4b9f5eb93edfab9a07085a0066c995a26923585dda0d2e1a136

This week's pulls

Pulls:

160,978

Jun 29 to Jul 5

Bitnami