集群通知

集群通知为工作负载集群提供独立的通知能力,支持多种通道和灵活配置,以确保在分布式环境中稳定、高效地传递消息。

前提条件

  • ACP version: >= v4.2
  • Plugin version: >= v1.0

安装

从 AlaudaCloud 下载插件包

登录 AlaudaCloud 并下载最新的 Alauda Container Platform Cluster Notification 插件包。

使用 violet 将插件推送到平台

使用 violet 将 Alauda Container Platform Cluster Notification 插件推送到平台:

violet push aiops-notification-business.ALL.vx.x.x.tgz \
  --platform-address https://<platform-address>/ \
  --platform-username <username> \
  --platform-password '<password>'

通过 Web 控制台安装

  1. 导航到 管理员 > Marketplace > Cluster Plugins
  2. 搜索 Alauda Container Platform Cluster Notification,然后点击查看其详情
  3. 点击 安装
  4. 选择目标集群并确认安装

通过 YAML 安装

apiVersion: cluster.alauda.io/v1alpha1
kind: ModuleInfo
metadata:
  annotations:
    cpaas.io/display-name: aiops-notification-business
    cpaas.io/module-name: '{"en": "Alauda Container Platform Cluster Notification",
      "zh": "Alauda Container Platform Cluster Notification"}'
  labels:
    cpaas.io/cluster-name: <cluster-name>               # Target cluster name
    cpaas.io/module-name: aiops-notification-business
    cpaas.io/module-type: plugin
    cpaas.io/product: Platform-Center
  name: aiops-notification-<cluster-name>             # Resource name            
spec:
  version: v1.0.0                                       # Plugin version

升级

INFO

本节提供 Alauda Container Platform Cluster Notification 的升级路径原则和支持的版本兼容性。

兼容性矩阵

下表列出了 Alauda Container Platform Cluster Notification 支持的版本:

Cluster Notification VersionSupported Alauda Container Platform Version
v1.0.1v4.2 and later
v1.0.0v4.2 and later

升级路径指南

补丁级升级

  • 描述:Cluster Notification 支持同一 minor version 内的补丁级升级,并且可以直接升级。
  • 前提条件:ACP version 必须满足上述兼容性矩阵。
  • 示例v1.0.0 -> v1.0.1

配置 Email 服务

插件安装后,默认不包含任何通知配置。用户需要手动创建相应的 YAML 配置。配置需要创建在与插件相同的集群中。

Email Server Config

apiVersion: v1
kind: Secret
metadata:
  annotations:
  labels:
    cpaas.io/notification.server.category: Email
    cpaas.io/notification.server.type: Email
  name: platform-email-server
  namespace: cpaas-system
type: NotificationServer
data:
  displayNameEn: RW1haWw=
  displayNameZh: 6YKu5Lu2
  from: dGVzdEBleGFtcGxlLmNvbQo=
  host: bWFpbC5leGFtcGxlLmNvbQo=
  insecureSkipVerify: dHJ1ZQ==
  password: MTIzNDU2Cg==
  port: NDY1
  sslEnabled: dHJ1ZQ==
  username: dGVzdEBleGFtcGxlLmNvbQo=

字段说明

字段说明
displayNameEn英文显示名称
displayNameZh中文显示名称
from发件人邮箱地址(例如:test@example.com
hostEmail 服务地址(例如:mail.example.com)
portEmail 服务端口
username发件人用户名
password发件人密码
sslEnabled启用 SSL(true/false)
insecureSkipVerify跳过证书验证(默认:true)

注意:secret data 中的所有字段值都必须使用 base64 编码。用户只需更新 data 部分中的信息。