wanjunlei 现在执行这三个指令的话,是这样的
kubectl get nr global-dingtalk-receiver -oyaml
kubectl get nc default-dingtalk-config -oyaml
kubectl get nm -oyaml
[root@node118 kubekey]# kubectl get nr global-dingtalk-receiver -oyaml
apiVersion: notification.kubesphere.io/v2beta2
kind: Receiver
metadata:
creationTimestamp: "2023-08-08T08:13:17Z"
generation: 3
labels:
type: global
name: global-dingtalk-receiver
resourceVersion: "51765178"
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]#
[root@node118 kubekey]#
[root@node118 kubekey]# kubectl get nc default-dingtalk-config -oyaml
apiVersion: notification.kubesphere.io/v2beta2
kind: Config
metadata:
annotations:
kubesphere.io/creator: admin
creationTimestamp: "2023-08-08T09:19:05Z"
generation: 1
labels:
type: default
name: default-dingtalk-config
resourceVersion: "51765176"
uid: 3cbbedc4-7ed3-497d-bb22-b14c132625d8
spec:
dingtalk: {}
status: {}
[root@node118 kubekey]#
[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":{"meta.helm.sh/release-name":"notification-manager","meta.helm.sh/release-namespace":"kubesphere-monitoring-system"},"labels":{"app":"notification-manager","app.kubernetes.io/managed-by":"Helm"},"name":"notification-manager"},"spec":{"affinity":{},"batchMaxSize":100,"batchMaxWait":"1m","defaultConfigSelector":{"matchLabels":{"type":"default"}},"defaultSecretNamespace":"kubesphere-monitoring-federated","groupLabels":["alertname","namespace"],"image":"kubesphere/notification-manager:v2.3.0","imagePullPolicy":"IfNotPresent","nodeSelector":{},"portName":"webhook","receivers":{"globalReceiverSelector":{"matchLabels":{"type":"global"}},"options":{"email":{"deliveryType":"bulk","notificationTimeout":5},"slack":{"notificationTimeout":5},"wechat":{"notificationTimeout":5}},"tenantKey":"user","tenantReceiverSelector":{"matchLabels":{"type":"tenant"}}},"replicas":1,"resources":{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"5m","memory":"20Mi"}},"routePolicy":"All","serviceAccountName":"notification-manager-sa","sidecars":{"tenant":{"image":"kubesphere/notification-tenant-sidecar:v3.2.0","name":"tenant","type":"kubesphere"}},"template":{"language":"English","languagePack":[{"name":"zh-cn","namespace":"kubesphere-monitoring-system"}],"reloadCycle":"1m","text":{"name":"notification-manager-template","namespace":"kubesphere-monitoring-system"}},"tolerations":[],"volumeMounts":[],"volumes":[]}}
meta.helm.sh/release-name: notification-manager
meta.helm.sh/release-namespace: kubesphere-monitoring-system
creationTimestamp: "2023-08-08T08:55:01Z"
generation: 1
labels:
app: notification-manager
app.kubernetes.io/managed-by: Helm
name: notification-manager
resourceVersion: "51759287"
uid: 97f2b102-b117-425a-97da-023441b390de
spec:
affinity: {}
batchMaxSize: 100
batchMaxWait: 1m
defaultConfigSelector:
matchLabels:
type: default
defaultSecretNamespace: kubesphere-monitoring-federated
groupLabels:
- alertname
- namespace
image: kubesphere/notification-manager:v2.3.0
imagePullPolicy: IfNotPresent
nodeSelector: {}
portName: webhook
receivers:
globalReceiverSelector:
matchLabels:
type: global
options:
email:
deliveryType: bulk
notificationTimeout: 5
slack:
notificationTimeout: 5
wechat:
notificationTimeout: 5
tenantKey: user
tenantReceiverSelector:
matchLabels:
type: tenant
replicas: 1
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 5m
memory: 20Mi
routePolicy: All
serviceAccountName: notification-manager-sa
sidecars:
tenant:
image: kubesphere/notification-tenant-sidecar:v3.2.0
name: tenant
type: kubesphere
template:
language: English
languagePack:
- name: zh-cn
namespace: kubesphere-monitoring-system
reloadCycle: 1m
text:
name: notification-manager-template
namespace: kubesphere-monitoring-system
tolerations: []
volumeMounts: []
volumes: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
[root@node118 kubekey]#
[root@node118 kubekey]#