Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 9. Configuring an Ingress Controller for manual DNS Management
As a cluster administrator, when you create an Ingress Controller, the Operator manages the DNS records automatically. This has some limitations when the required DNS zone is different from the cluster DNS zone or when the DNS zone is hosted outside the cloud provider.
As a cluster administrator, you can configure an Ingress Controller to stop automatic DNS management and start manual DNS management. Set
dnsManagementPolicy
When you change an Ingress Controller from
Managed
Unmanaged
Unmanaged
Managed
When you set
dnsManagementPolicy
unmanaged
9.1. Managed DNS management policy Link kopierenLink in die Zwischenablage kopiert!
The
Managed
9.2. Unmanaged DNS management policy Link kopierenLink in die Zwischenablage kopiert!
The
Unmanaged
On the AWS cloud platform, if the domain on the Ingress Controller does not match with
dnsConfig.Spec.BaseDomain
Unmanaged
9.3. Creating a custom Ingress Controller with the Unmanaged DNS management policy Link kopierenLink in die Zwischenablage kopiert!
As a cluster administrator, you can create a new custom Ingress Controller with the
Unmanaged
Prerequisites
-
Install the OpenShift CLI ().
oc -
Log in as a user with privileges.
cluster-admin
Procedure
Create a custom resource (CR) file named
containing the following:sample-ingress.yamlapiVersion: operator.openshift.io/v1 kind: IngressController metadata: namespace: openshift-ingress-operator name: <name>1 spec: domain: <domain>2 endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: External3 dnsManagementPolicy: Unmanaged4 - 1
- Specify the
<name>with a name for theIngressControllerobject. - 2
- Specify the
domainbased on the DNS record that was created as a prerequisite. - 3
- Specify the
scopeasExternalto expose the load balancer externally. - 4
dnsManagementPolicyindicates if the Ingress Controller is managing the lifecycle of the wildcard DNS record associated with the load balancer. The valid values areManagedandUnmanaged. The default value isManaged.
Save the file to apply the changes.
oc apply -f <name>.yaml1
9.4. Modifying an existing Ingress Controller Link kopierenLink in die Zwischenablage kopiert!
As a cluster administrator, you can modify an existing Ingress Controller to manually manage the DNS record lifecycle.
Prerequisites
-
Install the OpenShift CLI ().
oc -
Log in as a user with privileges.
cluster-admin
Procedure
Modify the chosen
to setIngressController:dnsManagementPolicySCOPE=$(oc -n openshift-ingress-operator get ingresscontroller <name> -o=jsonpath="{.status.endpointPublishingStrategy.loadBalancer.scope}") oc -n openshift-ingress-operator patch ingresscontrollers/<name> --type=merge --patch='{"spec":{"endpointPublishingStrategy":{"type":"LoadBalancerService","loadBalancer":{"dnsManagementPolicy":"Unmanaged", "scope":"${SCOPE}"}}}}'- Optional: You can delete the associated DNS record in the cloud provider.