This is a cache of https://docs.okd.io/4.10/networking/external_dns_operator/nw-configuration-parameters.html. It is a snapshot of the page at 2024-11-17T21:59:27.901+0000.
External <strong>dns</strong> Operator configuration parameters - External <strong>dns</strong> Operator | Networking | OKD 4.10
×

The External dns Operators includes the following configuration parameters:

External dns Operator configuration parameters

The External dns Operator includes the following configuration parameters:

Parameter Description

spec

Enables the type of a cloud provider.

spec:
  provider:
    type: AWS (1)
    aws:
      credentials:
        name: aws-access-key (2)
1 Defines available options such as AWS, GCP and Azure.
2 Defines a name of the secret which contains credentials for your cloud provider.

zones

Enables you to specify dns zones by their domains. If you do not specify zones, Externaldns discovers all the zones present in your cloud provider account.

zones:
- "myzoneid" (1)
1 Specifies the IDs of dns zones.

domains

Enables you to specify AWS zones by their domains. If you do not specify domains, Externaldns discovers all the zones present in your cloud provider account.

domains:
- filterType: Include (1)
  matchType: Exact (2)
  name: "myzonedomain1.com" (3)
- filterType: Include
  matchType: Pattern (4)
  pattern: ".*\\.otherzonedomain\\.com" (5)
1 Instructs Externaldns to include the domain specified.
2 Instructs Extrnaldns that the domain matching has to be exact as opposed to regular expression match.
3 Defines the exact domain name by which Externaldns filters.
4 Sets regex-domain-filter flag in Externaldns. You can limit possible domains by using a Regex filter.
5 Defines the regex pattern to be used by Externaldns to filter the domains of the target zones.

source

Enables you to specify the source for the dns records, Service or Route.

source: (1)
  type: Service (2)
  service:
    serviceType:(3)
      - LoadBalancer
      - ClusterIP
  labelFilter: (4)
    matchLabels:
      external-dns.mydomain.org/publish: "yes"
  hostnameAnnotation: "Allow" (5)
  fqdnTemplate:
  - "{{.Name}}.myzonedomain.com" (6)
1 Defines the settings for the source of dns records.
2 The Externaldns uses Service type as source for creating dns records.
3 Sets service-type-filter flag in Externaldns. The serviceType contains the following fields:
  • default: LoadBalancer

  • expected: ClusterIP

  • NodePort

  • LoadBalancer

  • ExternalName

4 Ensures that the controller considers only those resources which matches with label filter.
5 The default value for hostnameAnnotation is Ignore which instructs Externaldns to generate dns records using the templates specified in the field fqdnTemplates. When the value is Allow the dns records get generated based on the value specified in the external-dns.alpha.kubernetes.io/hostname annotation.
6 External dns Operator uses a string to generate dns names from sources that don’t define a hostname, or to add a hostname suffix when paired with the fake source.
source:
  type: OpenShiftRoute (1)
  openshiftRouteOptions:
    routerName: default (2)
    labelFilter:
      matchLabels:
        external-dns.mydomain.org/publish: "yes"
1 Externaldns` uses type route as source for creating dns records.
2 If the source is OpenShiftRoute, then you can pass the Ingress Controller name. The Externaldns uses canonical name of Ingress Controller as the target for CNAME record.