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.iocustom 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=mergeCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you specify a custom certificate, you must create a secret in the
openshift-confignamespace 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-configCopy 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-tlsspec: route: hostname: console.example.com secret: name: console-tlsCopy to Clipboard Copied! Toggle word wrap Toggle overflow