Skip to content

Commit 4038851

Browse files
authored
Merge pull request #27827 from ahardin-rh/change-console-url
Bug 1858387, clarify how to update the console URL
2 parents 1fe2cf8 + 88224b3 commit 4038851

File tree

3 files changed

+40
-9
lines changed

3 files changed

+40
-9
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * web_console/customizing-the-web-console.adoc
4+
5+
[id="customizing-the-web-console-url_{context}"]
6+
= Customizing the web console URL
7+
8+
You can update the web console URL, `consoleURL`, to a custom value.
9+
10+
.Procedure
11+
12+
. Modify the cluster instance created by default during installation in the `consoles.operator.openshift.io` custom resource:
13+
+
14+
[source,terminal]
15+
----
16+
$ oc patch consoles.operator.openshift.io cluster --patch '{"spec":{"route":{"hostname":"console.example.com"}}}' --type=merge
17+
----
18+
19+
. If you specify a custom certificate, you must create a secret in the `openshift-config` namespace that has the key and certificate. For example:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc create secret tls console-tls --key=key.pem --cert=cert.pem -n openshift-config
24+
----
25+
+
26+
Then, add the following stanza to the configuration resource:
27+
+
28+
[source,yaml]
29+
----
30+
spec:
31+
route:
32+
hostname: console.example.com
33+
secret:
34+
name: console-tls
35+
----

modules/web-console-configuration.adoc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
[id="web-console-configuration_{context}"]
66
= Configuring the web console
77

8-
You can configure the web console settings by editing the
9-
`console.config.openshift.io` resource.
8+
You can configure the web console settings by editing the `console.config.openshift.io` resource.
109

1110
* Edit the `console.config.openshift.io` resource:
1211
+
@@ -29,10 +28,5 @@ spec:
2928
status:
3029
consoleURL: "" <2>
3130
----
32-
<1> Specify the URL of the page to load when a user logs out of the web console.
33-
If you do not specify a value, the user returns to the login page for the
34-
web console. Specifying a `logoutRedirect` URL allows your users to perform
35-
single logout (SLO) through the identity provider to destroy their single
36-
sign-on session.
37-
<2> The web console URL. You cannot modify this parameter value. If you do, the
38-
cluster resets it to the default value.
31+
<1> Specify the URL of the page to load when a user logs out of the web console. If you do not specify a value, the user returns to the login page for the web console. Specifying a `logoutRedirect` URL allows your users to perform single logout (SLO) through the identity provider to destroy their single sign-on session.
32+
<2> The web console URL. To update this to a custom value, see *Customizing the web console URL*.

web_console/customizing-the-web-console.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ include::modules/adding-a-custom-logo.adoc[leveloffset=+1]
1313

1414
include::modules/creating-custom-links.adoc[leveloffset=+1]
1515

16+
include::modules/customizing-the-web-console-URL.adoc[leveloffset=+1]
17+
1618
include::modules/customizing-the-login-page.adoc[leveloffset=+1]
1719

1820
include::modules/defining-template-for-external-log-link.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)