You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ az network dns zone list --resource-group "${RESOURCE_GROUP}"
63
63
----
64
64
65
-
. Create `ExternalDNS`CR for `route` source:
65
+
. Create `ExternalDNS`resource for `route` source:
66
66
+
67
67
[source,yaml]
68
68
----
@@ -79,10 +79,11 @@ spec:
79
79
openshiftRouteOptions: <4>
80
80
routerName: default <5>
81
81
type: OpenShiftRoute <6>
82
+
EOF
82
83
----
83
-
<1> defines the name of External DNS CR.
84
+
<1> Specifies the name of External DNS CR.
84
85
<2> Define the zone ID.
85
-
<3> defines the Azure DNS provider.
86
+
<3> Defines the Azure DNS provider.
86
87
<4> You can define options for the source of DNS records.
87
88
<5> If the source is `OpenShiftRoute` then you can pass the OpenShift Ingress Controller name. External DNS selects the canonical hostname of that router as the target while creating CNAME record.
88
89
<6> Defines OpenShift `route` resource as the source for the DNS records which gets created in the previously specified DNS provider.
@@ -93,7 +94,7 @@ spec:
93
94
----
94
95
$ az network dns record-set list -g "${RESOURCE_GROUP}" -z test.azure.example.com | grep console
95
96
----
96
-
97
+
+
97
98
[NOTE]
98
99
====
99
100
To create records on private hosted zones on private Azure dns, you need to specify the private zone under `zones` which populates the provider type to `azure-private-dns` in the `ExternalDNS` container args.
The External DNS Operator implements the External DNS API from the `olm.openshift.io` API group. The External DNS Operator deploys the `ExternalDNS` using a deployment resource. The ExternalDNS deployment watches the resources such as services and routes in the cluster and updates the external DNS providers.
9
+
10
+
.Procedure
11
+
12
+
You can deploy the ExternalDNS Operator on demand from the OperatorHub, this creates a `Subscription` object.
13
+
14
+
. Check the name of an install plan:
15
+
+
16
+
[source,terminal]
17
+
----
18
+
$ oc -n external-dns-operator get sub external-dns-operator -o yaml | yq '.status.installplan.name'
19
+
----
20
+
+
21
+
.Example output
22
+
[source,terminal]
23
+
----
24
+
install-zcvlr
25
+
----
26
+
27
+
. Check the status of an install plan, the status of an install plan must be `Complete`:
28
+
+
29
+
[source,terminal]
30
+
----
31
+
$ oc -n external-dns-operator get ip <INSTALL_PLAN_NAME> -o yaml | yq .status.phase'
32
+
----
33
+
+
34
+
.Example output
35
+
[source,terminal]
36
+
----
37
+
Complete
38
+
----
39
+
40
+
. Use the `oc get` command to view the `Deployment` status:
41
+
+
42
+
[source,terminal]
43
+
----
44
+
$ oc get -n external-dns-operator deployment/external-dns-operator
You can install the External DNS Operator using the {product-title} OperatorHub.
10
+
11
+
.Procedure
12
+
13
+
. Click *Operators* → *OperatorHub* in the {product-title} Web Console.
14
+
. Click *External DNS Operator*.
15
+
You can use the *Filter by keyword* text box or the filter list to search for External DNS Operator from the list of Operators.
16
+
. Select the `external-dns-operator` namespace.
17
+
. On the External DNS Operator page, click *Install*.
18
+
. On the *Install Operator* page, ensure that you selected the following options:
19
+
.. Update the channel as *stable-v1.0*.
20
+
.. Installation mode as *A specific name on the cluster*.
21
+
.. Installed namespace as `external-dns-operator`. If namespace `external-dns-operator` does not exist, it gets created during the Operator installation.
22
+
.. Select *Approval Strategy* as *Automatic* or *Manual*. Approval Strategy is set to *Automatic* by default.
23
+
.. Click *Install*.
24
+
25
+
If you select *Automatic* updates, the Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without any intervention.
26
+
27
+
If you select *Manual* updates, the OLM creates an update request. As a cluster administrator, you must then manually approve that update request to have the Operator updated to the new version.
28
+
29
+
30
+
.Verification
31
+
32
+
Verify that External DNS Operator shows the *Status* as *Succeeded* on the Installed Operators dashboard.
0 commit comments