跳到主要内容

Whizard 卸载

KubeSphere Enterprise 4.x 卸载

4.x 中卸载可卸载重装 WhizardTelemetry 监控 扩展组件,也可以参照之前启用方式,将原参数改回。

KubeSphere Enterprise 3.x 卸载

KubeSphere Enterprise 3.x 中将监控数据数据停止向 Whizard 写入

如果需要在 KubeSphere Enterprise 3.x 中停用 Whizard 可观测中心,恢复独立集群监控,可执行如下步骤:

kubectl edit cc -n kubesphere-system  ks-installer
spec:
monitoring:
whizard:
client:
clusterName: ""
gatewayUrl: ""
enabled: false #将whizard.enabled 置为false
server:
nodePort: 30990
status:
alerting:
enabledTime: 2023-03-13T17:36:43CST
status: enabled #将alerting.status: enabled 移除
monitoring:
enabledTime: 2023-05-31T11:47:43CST
status: enabled #将monitoring.status: enabled 移除

KubeSphere Enterprise 3.x 中移除 Whizard 服务

  1. whizard-adapter 副本置为0, 停止 KuberSphere Cluster 与 Whizard Tenant 自动同步;

    kubectl scale deployment --replicas=0  -n kubesphere-monitoring-system   whizard-adapter
  2. 移除 Whizard 中所有租户, 此时根据租户自动伸缩的compactor、store、ruler 部署将自动卸载,ingester 因为数据保留周期限制将延后删除。因为我们要卸载operator,因此这里就直接手动删除

    kubectl delete tenant.monitoring.whizard.io --all
    kubectl delete ingester.monitoring.whizard.io -A --all
  3. 执行 helm 卸载命令

    helm delete whizard -n kubesphere-monitoring-system
  4. 移除部署的 whizard-agent-proxy

    kubectl delete deployment -n kubesphere-monitoring-system   whizard-agent-proxy
  5. 至此,whizard 相关部署副本已基本卸载干净,如需卸载CRD,可执行

    kubectl delete crd compactors.monitoring.whizard.io gateways.monitoring.whizard.io queries.monitoring.whizard.io queryfrontends.monitoring.whizard.io routers.monitoring.whizard.io rulers.monitoring.whizard.io services.monitoring.whizard.io storages.monitoring.whizard.io storages.monitoring.whizard.io stores.monitoring.whizard.io tenants.monitoring.whizard.io