Chapter 4. Customizing the web console in OpenShift Dedicated
You can customize the OpenShift Dedicated web console to set a custom logo and product name. This is especially helpful if you need to tailor the web console to meet specific corporate or government requirements.
4.1. Adding a custom logo and product name Copy linkLink copied to clipboard!
You can create custom branding by adding a custom logo or custom product name. You can set both or one without the other, as these settings are independent of each other.
Prerequisites
- You must have administrator privileges.
-
Create a file of the logo that you want to use. The logo can be a file in any common image format, including GIF, JPG, PNG, or SVG, and is constrained to a
max-heightof60px. Image size must not exceed 1 MB due to constraints on theConfigMapobject size.
Procedure
Import your logo file into a config map in the
openshift-confignamespace:oc create configmap console-custom-logo --from-file /path/to/console-custom-logo.png -n openshift-config
$ oc create configmap console-custom-logo --from-file /path/to/console-custom-logo.png -n openshift-configCopy to Clipboard Copied! Toggle word wrap Toggle overflow TipYou can alternatively apply the following YAML to create the config map:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<base64-encoded_logo>with a base64-encoded string of the logo.Edit the web console’s Operator configuration to include
customLogoFileandcustomProductName:oc edit consoles.operator.openshift.io cluster
$ oc edit consoles.operator.openshift.io clusterCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Once the Operator configuration is updated, it will sync the custom logo config map into the console namespace, mount it to the console pod, and redeploy.
Check for success. If there are any issues, the console cluster Operator will report a
Degradedstatus, and the console Operator configuration will also report aCustomLogoDegradedstatus, but with reasons such asKeyOrFilenameInvalidorNoImageProvided.To check the
clusteroperator, run:oc get clusteroperator console -o yaml
$ oc get clusteroperator console -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow To check the console Operator configuration, run:
oc get consoles.operator.openshift.io -o yaml
$ oc get consoles.operator.openshift.io -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow