Whizard 卸载

KubeSphere Enterprise 4.x 卸载

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

KubeSphere Enterprise 3.x 卸载

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

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

  1. kubectl edit cc -n kubesphere-system ks-installer
  1. spec:
  2. monitoring:
  3. whizard:
  4. client:
  5. clusterName: ""
  6. gatewayUrl: ""
  7. enabled: false #将whizard.enabled 置为false
  8. server:
  9. nodePort: 30990
  10. status:
  11. alerting:
  12. enabledTime: 2023-03-13T17:36:43CST
  13. status: enabled #将alerting.status: enabled 移除
  14. monitoring:
  15. enabledTime: 2023-05-31T11:47:43CST
  16. status: enabled #将monitoring.status: enabled 移除

KubeSphere Enterprise 3.x 中移除 Whizard 服务

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

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

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

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

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

    1. 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