|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_bare_metal/upi/installing-bare-metal-network-customizations.adoc |
| 4 | +// * installing/installing_bare_metal/upi/installing-bare-metal.adoc |
| 5 | +// * installing/installing_bare_metal/upi/installing-restricted-networks-bare-metal.adoc |
| 6 | + |
| 7 | +:_mod-docs-content-type: CONCEPT |
| 8 | +[id="installation-bare-metal-dns-record-type_{context}"] |
| 9 | += Configuring the DnsRecordsType parameter |
| 10 | + |
| 11 | +[role="_abstract"] |
| 12 | +You can use the `DnsRecordsType` parameter in your `infrastructure.config.openshift.io` custom resource (CR) to set if the internal DNS service or an external source provides the necessary records for `api`, `api-int`, and `ingress` DNS records. |
| 13 | + |
| 14 | +:FeatureName: Configuring the DnsRecordsType parameter |
| 15 | +include::snippets/technology-preview.adoc[] |
| 16 | + |
| 17 | +To use the parameter, you must enable the `OnPremDNSRecords` feature gate in the `config.yaml` file. |
| 18 | + |
| 19 | +The `dnsRecordsType` parameter supports the following values: |
| 20 | + |
| 21 | +* `Internal`: The default value. Setting this value causes the cluster infrastructure to automatically create and maintain the necessary DNS records. |
| 22 | +* `External`: You can use this value only if you set the `loadBalancer.type` parameter to `UserManaged`. The cluster does not manage the DNS records. You must manually configure DNS records on an external DNS server. |
| 23 | +
|
| 24 | +.Prerequisites |
| 25 | + |
| 26 | +* You created DNS records, such as `api`, `api-int`, or `\*.apps`. |
| 27 | +* You configured a user-managed load balancer for your cluster. |
| 28 | +* If you intend on setting `dnsRecordsType.External` in the `infrastructure.config.openshift.io` CR , you must initially configure cluster nodes to use the specific external server for DNS resolution. |
| 29 | +
|
| 30 | +.Procedure |
| 31 | + |
| 32 | +. Edit the `featuregate.config.openshift.io/cluster` CR and set the `featureSet.customNoUpgrade.enabled` parameter to the `OnPremDNSRecords` value: |
| 33 | ++ |
| 34 | +[source,yaml] |
| 35 | +---- |
| 36 | +apiVersion: config.openshift.io/v1 |
| 37 | +kind: FeatureGate |
| 38 | +metadata: |
| 39 | + name: cluster |
| 40 | +spec: |
| 41 | + featureSet: CustomNoUpgrade |
| 42 | + customNoUpgrade: |
| 43 | + enabled: |
| 44 | + - OnPremDNSRecords |
| 45 | +# ... |
| 46 | +---- |
| 47 | + |
| 48 | +* Edit your `infrastructure.config.openshift.io` CR by setting the `dnsRecordsType` parameter to the `External` value: |
| 49 | ++ |
| 50 | +[source,yaml] |
| 51 | +---- |
| 52 | +apiVersion: config.openshift.io/v1 |
| 53 | +kind: Infrastructure |
| 54 | +metadata: |
| 55 | + name: cluster |
| 56 | +spec: |
| 57 | + platformSpec: |
| 58 | + baremetal: |
| 59 | + dnsRecordsType: External |
| 60 | +# ... |
| 61 | +---- |
| 62 | +
|
0 commit comments