|
| 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 your `infrastructure.config.openshift.io` CR by setting the `OnPremDNSRecords` value for the `featureGates` parameter. Additionally, set the `dnsRecordsType` parameter to `Internal` or `External`. |
| 33 | ++ |
| 34 | +[source,yaml] |
| 35 | +---- |
| 36 | +apiVersion: apiextensions.k8s.io/v1 |
| 37 | +name: "Infrastructure" |
| 38 | +crdName: infrastructures.config.openshift.io |
| 39 | +featureGates: |
| 40 | +- OnPremDNSRecords |
| 41 | +# ... |
| 42 | +name: cluster |
| 43 | +spec: |
| 44 | + platformSpec: |
| 45 | + type: BareMetal |
| 46 | +status: |
| 47 | + infrastructureName: <cluster_id> |
| 48 | + platform: BareMetal |
| 49 | + platformStatus: |
| 50 | + baremetal: |
| 51 | + dnsRecordsType: External |
| 52 | + loadBalancer: |
| 53 | + type: UserManaged |
| 54 | + cpuPartitioning: None |
| 55 | + infrastructureTopology: HighlyAvailable |
| 56 | + controlPlaneTopology: HighlyAvailable |
| 57 | +# ... |
| 58 | +---- |
| 59 | +
|
| 60 | +
|
| 61 | +
|
| 62 | +
|
| 63 | +
|
0 commit comments