重要消息应该被看到,而不是在收件箱中被忽略或埋没在聊天记录中。

借助 OpenShift 的 ConsoleNotification,您可以直接在 OpenShift 控制台,就在管理员正在积极工作的地方。

无论是传达维护窗口、环境上下文还是操作警告,它都能确保在正确的时间显示正确的信息。

在本文中,我们将详细介绍如何为您的集群配置一个清晰有效的通知横幅。

什么是 ConsoleNotification?

ConsoleNotification 是 OpenShift 中的一个自定义资源,它允许您直接在 Web 控制台中显示横幅消息。

它非常适用于:

  • 维护窗口  
  • 升级警告  
  • 环境标签(开发 / 测试 / 生产)  
  • 那些委婉而又带点压力的提醒(我们都经历过)

以下是一个简单的YAML文件,供您入门: 

apiVersion: console.openshift.io/v1 
kind: ConsoleNotification 
metadata: 
  name: example 
spec: 
  text: This is an example notification message with an optional link. 
  location: BannerTop 
  link: 
    href: 'https://www.example.com' 
    text: Optional link text 
  color: '#fff' 
  backgroundColor: '#0088ce'


要部署,只需导入此YAML文件即可。

我们来看看这个YAML文件的内容:

  • kind
    将其定义为ConsoleNotification资源。  
  • metadata.name
    您的横幅的唯一名称。如果需要,可以创建多个。  
  • spec.text
    用户将看到的实际消息。您可以包含任何Unicode表情符号。  
  • spec.location
    横幅显示位置:  
  • 横幅顶部(最常见)  
  • 横幅底部  
  • spec.link(可选)
    添加一个可点击的链接以获取更多信息。  
  • spec.color
    文本颜色(十六进制格式)。  
  • spec.backgroundColor
    横幅背景颜色——您可以在此处使其醒目(或非常醒目)。

您创建的每个控制台通知都将成为一个独立的横幅。这意味着:

  • 多个 CR = 多个横幅  
  • 它们在控制台中垂直堆叠  
  • 顺序通常基于创建时间  

Unlock the Ultimate Guide to IBM Maximo Application Suite (MAS)

Discover everything you need to know to modernize your asset management strategy.

Inside, you’ll learn:

  • What’s new in IBM Maximo Application Suite 9.0
  • Key differences between Maximo 7.6 and MAS
  • How AppPoints and OpenShift change the game
  • Industry use cases across energy, manufacturing, and transportation
  • Step-by-step guidance for upgrading and migration readiness
Cover of 'The Ultimate Guide to MAS Maximo Application Suite' by Naviam featuring a man in a yellow construction helmet and safety vest holding a tablet.
×

ActiveG, BPD Zenith, EAM Swiss, InterPro Solutions, Lexco, Peacock Engineering, Projetech, Sharptree, and ZNAPZ have united under one brand: Naviam.

You’ll be redirected to the most relevant page at Naviam.io in a few seconds — or you can go now.

Read Press Release