Skip to content

Commit 2c0849a

Browse files
authored
Merge pull request #35405 from bergerhoffer/console-url-updates
Updating console route procedures with formatting changes from OAuth …
2 parents d5390ae + 541bab6 commit 2c0849a

File tree

1 file changed

+46
-10
lines changed

1 file changed

+46
-10
lines changed

modules/customizing-the-web-console-URL.adoc

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,28 @@ For `console` and `downloads` routes, custom routes functionality uses the `ingr
1010
[id="customizing-the-console-route_{context}"]
1111
== Customizing the console route
1212

13+
You can customize the console route by setting the custom host name and TLS certificate in the `spec.componentRoutes` field of the cluster `Ingress` configuration.
14+
1315
.Prerequisites
1416

15-
* Log in to the cluster as a user with administrative privileges.
17+
* You have logged in to the cluster as a user with administrative privileges.
18+
* You have created a secret in the `openshift-config` namespace containing the TLS certificate and key. This is required if the domain for the custom host name suffix does not match the cluster domain suffix. The secret is optional if the suffix matches.
19+
+
20+
[TIP]
21+
====
22+
You can create a TLS secret by using the `oc create secret tls` command.
23+
====
1624

1725
.Procedure
1826

19-
* Set the custom hostname and, if needed, set TLS on the ingress config's spec:
27+
. Edit the cluster `Ingress` configuration:
28+
+
29+
[source,terminal]
30+
----
31+
$ oc edit ingress.config.openshift.io cluster
32+
----
33+
34+
. Set the custom host name and optionally the serving certificate and key:
2035
+
2136
[source,yaml]
2237
----
@@ -28,23 +43,40 @@ spec:
2843
componentRoutes:
2944
- name: console
3045
namespace: openshift-console
31-
hostname: <custom-hostname>
46+
hostname: <custom_hostname> <1>
3247
servingCertKeyPairSecret:
33-
name: <secret-name>
48+
name: <secret_name> <2>
3449
----
35-
+
36-
If the domain for the custom hostname suffix does not match the cluster domain suffix, then a secret that contains a TLS certificate and key must exist in the `openshift-config` namespace and must be referenced in the `ingress` config. If the domain for the custom hostname suffix matches the cluster domain suffix, then the secret is optional. The secret must contain `tls.crt` and `tls.key` data keys, where the certificate and key are stored, and both must be in a valid format.
50+
<1> The custom host name.
51+
<2> Reference to a secret in the `openshift-config` namespace that contains a TLS certificate (`tls.crt`) and key (`tls.key`). This is required if the domain for the custom host name suffix does not match the cluster domain suffix. The secret is optional if the suffix matches.
52+
53+
. Save the file to apply the changes.
3754

3855
[id="customizing-the-download-route_{context}"]
3956
== Customizing the download route
4057

58+
You can customize the download route by setting the custom host name and TLS certificate in the `spec.componentRoutes` field of the cluster `Ingress` configuration.
59+
4160
.Prerequisites
4261

43-
* Log in to the cluster as a user with administrative privileges.
62+
* You have logged in to the cluster as a user with administrative privileges.
63+
* You have created a secret in the `openshift-config` namespace containing the TLS certificate and key. This is required if the domain for the custom host name suffix does not match the cluster domain suffix. The secret is optional if the suffix matches.
64+
+
65+
[TIP]
66+
====
67+
You can create a TLS secret by using the `oc create secret tls` command.
68+
====
4469

4570
.Procedure
4671

47-
* Set the custom hostname and, if needed, set TLS on the ingress config's spec:
72+
. Edit the cluster `Ingress` configuration:
73+
+
74+
[source,terminal]
75+
----
76+
$ oc edit ingress.config.openshift.io cluster
77+
----
78+
79+
. Set the custom host name and optionally the serving certificate and key:
4880
+
4981
[source,yaml]
5082
----
@@ -56,7 +88,11 @@ spec:
5688
componentRoutes:
5789
- name: downloads
5890
namespace: openshift-console
59-
hostname: <custom-hostname>
91+
hostname: <custom_hostname> <1>
6092
servingCertKeyPairSecret:
61-
name: <secret-name>
93+
name: <secret_name> <2>
6294
----
95+
<1> The custom host name.
96+
<2> Reference to a secret in the `openshift-config` namespace that contains a TLS certificate (`tls.crt`) and key (`tls.key`). This is required if the domain for the custom host name suffix does not match the cluster domain suffix. The secret is optional if the suffix matches.
97+
98+
. Save the file to apply the changes.

0 commit comments

Comments
 (0)