部署了es日志组件发现占用资源太多想清理掉,是不是helm uninstall就好了?
修改clusterconfiguration改为false,删除ks-installer重新跑部署流程是没有效果的。
[root@jenkins git]# helm -n kubesphere-logging-system list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
elasticsearch-logging kubesphere-logging-system 2 2020-09-25 09:33:19.489355811 +0800 CST deployed elasticsearch-1.22.1 6.7.0-0217
elasticsearch-logging-curator kubesphere-logging-system 2 2020-09-25 09:33:32.783134391 +0800 CST deployed elasticsearch-curator-1.3.3 5.5.4-0217
ks-events kubesphere-logging-system 1 2020-09-23 00:51:45.529430505 +0800 CST deployed kube-events-0.1.0 0.1.0
logsidecar-injector kubesphere-logging-system 1 2020-09-23 00:51:57.519733074 +0800 CST deployed logsidecar-injector-0.1.0 0.1.0
[root@jenkins git]# helm -n kubesphere-logging-system uninstall elasticsearch-logging elasticsearch-logging-curator ks-events logsidecar-injector
release "elasticsearch-logging" uninstalled
release "elasticsearch-logging-curator" uninstalled
release "ks-events" uninstalled
release "logsidecar-injector" uninstalled
[root@jenkins git]#
还要清理一些非helm资源
[root@jenkins git]# kubectl -n kubesphere-logging-system delete daemonset.apps/fluent-bit deployment.apps/fluentbit-operator
daemonset.apps "fluent-bit" deleted
deployment.apps "fluentbit-operator" deleted
[root@jenkins git]#
命名空间删除不掉,处于Terminating 状态,估计还有crd或者什么依赖
[root@jenkins git]# kubectl -n kubesphere-logging-system get all
No resources found in kubesphere-logging-system namespace.
[root@jenkins git]# kubectl delete ns kubesphere-logging-system
namespace "kubesphere-logging-system" deleted
[root@jenkins kubersphere]# kubectl get ns |grep kubesphere-logging-system
kubesphere-logging-system Terminating 2d9h
是不是存在crd的原因,这些crd可以删除吗
[root@jenkins git]# kubectl get crd |grep logging
filters.logging.kubesphere.io 2020-09-22T16:49:29Z
fluentbitconfigs.logging.kubesphere.io 2020-09-22T16:49:31Z
fluentbits.logging.kubesphere.io 2020-09-22T16:49:30Z
inputs.logging.kubesphere.io 2020-09-22T16:49:32Z
outputs.logging.kubesphere.io 2020-09-22T16:49:34Z