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
Copy file name to clipboardExpand all lines: modules/nw-ingress-configuring-application-domain.adoc
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
//OpenShift Dedicated or Amazon RH OpenShift cluster administrator
10
10
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.
12
12
13
13
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.
.Sample `appsDomain` configuration to `apps.acme.io`
34
+
.Sample `appsDomain` configuration to `test.example.com`
35
35
[source,yaml]
36
36
----
37
37
apiVersion: config.openshift.io/v1
38
38
kind: Ingress
39
39
metadata:
40
40
name: cluster
41
41
spec:
42
-
domain: apps.<domain_url>
43
-
appsDomain: apps.acme.io
42
+
domain: apps.example.com <1>
43
+
appsDomain: <test.example.com> <2>
44
44
----
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`.
45
47
+
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:
47
49
//+
48
50
//.. Access the Ingress Controller Operator YAML file:
49
51
//+
@@ -65,11 +67,12 @@ $ oc expose service hello-openshift
65
67
route.route.openshift.io/hello-openshift exposed
66
68
----
67
69
+
68
-
.. Verify route domain change:
70
+
.Example output:
69
71
+
70
72
[source,terminal]
71
73
----
72
74
$ oc get routes
73
75
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
0 commit comments