External-dns: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:


=Configuration=
=Configuration=
==external-dns Configuration==


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
Line 35: Line 37:
domainFilters:
domainFilters:
   - example.com
   - example.com
</syntaxhighlight>
==Service Configuration==
<syntaxhighlight lang='yaml'>
apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: '{{ .Release.Namespace }}.example.com'
</syntaxhighlight>
</syntaxhighlight>

Revision as of 21:21, 12 November 2020

External

Internal

Overview

One single deployment can serve multiple services in different namespaces.

Installation

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install -n default external-dns bitnami/external-dns -f ./overlay.yaml

Upon installation:

NAME                             READY   STATUS    RESTARTS   AGE
external-dns-5788c65f8c-7l7kd    1/1     Running   0          60m

Configuration

external-dns Configuration

aws:
  region: us-west-2
registry: txt
policy: upsert-only
txtOwnerId: "Z0000000000000000000"
sources:
  - service
  - ingress
domainFilters:
  - example.com

Service Configuration

apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: '{{ .Release.Namespace }}.example.com'