This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.3. Customizing the web console URL
You can update the web console URL, consoleURL
, to a custom value.
Procedure
Modify the cluster instance created by default during installation in the
consoles.operator.openshift.io
custom resource:oc patch consoles.operator.openshift.io cluster --patch '{"spec":{"route":{"hostname":"console.example.com"}}}' --type=merge
$ oc patch consoles.operator.openshift.io cluster --patch '{"spec":{"route":{"hostname":"console.example.com"}}}' --type=merge
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you specify a custom certificate, you must create a secret in the
openshift-config
namespace that has the key and certificate. For example:oc create secret tls console-tls --key=key.pem --cert=cert.pem -n openshift-config
$ oc create secret tls console-tls --key=key.pem --cert=cert.pem -n openshift-config
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then, add the following stanza to the configuration resource:
spec: route: hostname: console.example.com secret: name: console-tls
spec: route: hostname: console.example.com secret: name: console-tls
Copy to Clipboard Copied! Toggle word wrap Toggle overflow