- 已编辑
wanjunlei 在页面配置的webhook等一部分关键信息,在这里面看是没有的,变成空了
[root@node118 kubekey]# kubectl get nr global-dingtalk-receiver -oyaml
apiVersion: notification.kubesphere.io/v2beta2
kind: Receiver
metadata:
annotations:
kubesphere.io/creator: admin
creationTimestamp: "2023-08-08T08:13:17Z"
generation: 1
labels:
type: global
name: global-dingtalk-receiver
resourceVersion: "51748950"
uid: 58cd94bd-fb75-464b-8496-037d63d5ebe4
spec:
dingtalk:
chatbot:
keywords:
- alert
- k8s
webhook:
valueFrom:
secretKeyRef:
key: ""
name: ""
enabled: true
status: {}
[root@node118 kubekey]#
[root@node118 kubekey]# kubectl get nc default-dingtalk-config -oyaml
Error from server (NotFound): configs.notification.kubesphere.io "default-dingtalk-config" not found
[root@node118 kubekey]#
[root@node118 kubekey]#
[root@node118 kubekey]# kubectl get nm -oyaml
apiVersion: v1
items:
- apiVersion: notification.kubesphere.io/v2beta2
kind: NotificationManager
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"notification.kubesphere.io/v2beta2","kind":"NotificationManager","metadata":{"annotations":{},"name":"notification-manager"},"spec":{"defaultConfigSelector":{"matchLabels":{"type":"default"}},"groupLabels":["alertname","namespace"],"image":"kubesphere/notification-manager:v2.2.0","imagePullPolicy":"Always","portName":"webhook","receivers":{"globalReceiverSelector":{"matchLabels":{"type":"global"}},"options":{"dingtalk":{"notificationTimeout":5},"email":{"notificationTimeout":5},"slack":{"notificationTimeout":5},"webhook":{"notificationTimeout":5},"wechat":{"notificationTimeout":5}},"tenantKey":"user","tenantReceiverSelector":{"matchLabels":{"type":"tenant"}}},"replicas":1,"resources":{"limits":{"cpu":"500m","memory":"1Gi"},"requests":{"cpu":"100m","memory":"20Mi"}},"serviceAccountName":"notification-manager-sa","template":{"text":{"name":"notification-manager-template","namespace":"kubesphere-monitoring-system"}}}}
creationTimestamp: "2023-08-08T05:49:27Z"
generation: 1
name: notification-manager
resourceVersion: "51722951"
uid: 57d127b9-e4e6-4738-b02d-bae024966f15
spec:
batchMaxSize: 100
batchMaxWait: 1m
defaultConfigSelector:
matchLabels:
type: default
image: kubesphere/notification-manager:v2.2.0
imagePullPolicy: Always
portName: webhook
receivers:
globalReceiverSelector:
matchLabels:
type: global
options:
dingtalk:
notificationTimeout: 5
email:
notificationTimeout: 5
slack:
notificationTimeout: 5
webhook:
notificationTimeout: 5
wechat:
notificationTimeout: 5
tenantKey: user
tenantReceiverSelector:
matchLabels:
type: tenant
replicas: 1
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 100m
memory: 20Mi
routePolicy: All
serviceAccountName: notification-manager-sa
kind: List
metadata:
resourceVersion: ""
selfLink: ""
[root@node118 kubekey]#
[root@node118 kubekey]#