写了一个租户报警,钉钉一直报不出来,全局的可以。
KS版本 3.2, 3.1 也是同样的问题。 是不是钉钉不支持租户报警?
另外 kubectl edit notificationmanager 已经改过 tenantKey: 为 namespace
不知道是什么原因。报警已经触发。


notification-manager-deploy 的日志

以下是配置文件
webhook 已经截断一些数据,请忽略,这个肯定是好的,因为这个配置从全局配置复制过来。全局正常报警。
apiVersion: v1
data:
webhook: aHR0cHM6Ly9vYXBpLmRpbmd0YWxrLmNvbS9yb2JvdC9zZW5kP2FjY2Vzc190b2tlbj03OWI4M2Y1NzNhMzBmZjU4OWZiN
kind: Secret
metadata:
labels:
type: tenant
app: notification-manager
name: bill-test-alert-dingtalk-config-secret
namespace: kubesphere-monitoring-system
type: Opaque
---
apiVersion: v1
apiVersion: notification.kubesphere.io/v2beta2
kind: Config
metadata:
labels:
app: notification-manager
type: tenant
namespace: bill-test-alert
name: bill-test-alert-dingtalk-config
---
apiVersion: notification.kubesphere.io/v2beta2
kind: Receiver
metadata:
labels:
app: notification-manager
type: tenant
namespace: bill-test-alert # 项目关联
name: bill-test-alert-dingtalk-receiver
spec:
dingtalk:
dingtalkConfigSelector:
matchLabels:
type: tenant
namespace: bill-test-alert
chatbot:
keywords:
- kubesphere
webhook:
valueFrom:
secretKeyRef:
key: webhook
name: bill-test-alert-dingtalk-config-secret
enabled: true