OpenShift Console Banner

Apr 25, 2025

2 min read

Adding visual indicators to your OpenShift clusters can help users quickly identify which environment they’re working in, potentially preventing accidental changes in production environments.

This article demonstrates how to set a console banner in OpenShift to display important information like the cluster name or environment type.

Setting up a Console Banner

You can create a banner on the OpenShift web console by creating a ConsoleNotification custom resource:

apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
  name: banner
spec:
  backgroundColor: '#0f4414'  # Dark red
  color: '#ffffff'            # White text
  location: BannerTop
  text: If it ain't broke, don't fix it

Common Use Cases

  • Identifying different clusters (prod, dev, test)

  • Warning users about scheduled maintenance

  • Highlighting important information about the environment

Note

Using distinct colors for different environments helps users visually identify which cluster they’re working with, reducing the risk of mistakes.

Applying the Configuration

Apply the configuration using the oc command:

oc apply -f banner.yaml

To remove the banner:

oc delete consolennotification banner