第一次部署的时候直接默认了,没去管,想着自己的机器数量小, 暂时不需要怎么多节点就想将这些节点改为1个,通过修改ks-install配置加载后,没有生效, 只能直接去手动修改了 prometheus,alertmanager,notification-manager 的operator配置。
kubectl edit prometheus -n kubesphere-monitoring-system k8s
kubectl edit alertmanagers.monitoring.coreos.com -n kubesphere-monitoring-system
kubectl edit -n kubesphere-monitoring-system notificationmanagers.notification.kubesphere.io notification-manager
kubectl get pods -n kubesphere-monitoring-system
[root@k8s-master1 kubesphere]# kubectl get pods -n kubesphere-monitoring-system
NAME READY STATUS RESTARTS AGE
alertmanager-main-0 2/2 Running 0 6m32s
kube-state-metrics-95c974544-cbrkx 3/3 Running 0 9d
node-exporter-wg64z 2/2 Running 0 24m
notification-manager-deployment-5985587df8-665mk 1/1 Running 0 9d
notification-manager-operator-f748ff7db-g9lpz 2/2 Running 0 9d
prometheus-k8s-0 3/3 Running 1 9d
prometheus-operator-84d58bf775-xkw7w 2/2 Running 0 9d