Skip to content

Commit 4f0ee63

Browse files
committed
GH#36067: clarifying domain/appsDomain per GH Issue confusion
1 parent 909f686 commit 4f0ee63

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

modules/nw-ingress-configuring-application-domain.adoc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
//OpenShift Dedicated or Amazon RH OpenShift cluster administrator
1010

11-
As a cluster administrator, you can specify an alternative default domain for user-created routes by configuring `appsDomain` field. If you specify an alternative domain, it overrides the default cluster domain for the purpose of determining the default host for a new route.
11+
As a cluster administrator, you can specify an alternative to the default cluster domain for user-created routes by configuring the `appsDomain` field. The `appsDomain` field is an optional domain for AWS infrastructure to use instead of the default, which is specified in the `domain` field. If you specify an alternative domain, it overrides the default cluster domain for the purpose of determining the default host for a new route.
1212

1313
For example, you can use the DNS domain for your company as the default domain for routes and ingresses for applications running on your cluster.
1414

@@ -31,19 +31,21 @@ $ oc edit ingresses.config/cluster -o yaml
3131
+
3232
.. Edit the YAML file:
3333
+
34-
.Sample `appsDomain` configuration to `apps.acme.io`
34+
.Sample `appsDomain` configuration to `test.example.com`
3535
[source,yaml]
3636
----
3737
apiVersion: config.openshift.io/v1
3838
kind: Ingress
3939
metadata:
4040
name: cluster
4141
spec:
42-
domain: apps.<domain_url>
43-
appsDomain: apps.acme.io
42+
domain: apps.example.com <1>
43+
appsDomain: <test.example.com> <2>
4444
----
45+
<1> Default domain
46+
<2> Optional: Domain for AWS infrastructure to use for application routes. Instead of the default prefix, `apps`, you can use an alternative prefix like `test`.
4547
+
46-
. Verify that an existing route contains the new domain name by exposing the route and verifying the route domain change:
48+
. Verify that an existing route contains the domain name specified in the `appsDomain` field by exposing the route and verifying the route domain change:
4749
//+
4850
//.. Access the Ingress Controller Operator YAML file:
4951
//+
@@ -65,11 +67,12 @@ $ oc expose service hello-openshift
6567
route.route.openshift.io/hello-openshift exposed
6668
----
6769
+
68-
.. Verify route domain change:
70+
.Example output:
6971
+
7072
[source,terminal]
7173
----
7274
$ oc get routes
7375
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
74-
hello-openshift hello-openshift-my-project.apps.acme.io hello-openshift 8080-tcp None
76+
hello-openshift hello_openshift-<my_project>.test.example.com
77+
hello-openshift 8080-tcp None
7578
----

0 commit comments

Comments
 (0)