问题描述
卸载可观测监控 Prometheus 版后,重新安装可观测监控 Prometheus 版时,出现以下报错信息。
rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: ClusterRole, namespace: , name: arms-pilot-prom-k8s
问题原因
通过命令手动删除arms-prom后,可能会存在角色等资源残留。
解决方案
如果出现该问题,需要按照以下步骤进行处理:
- 执行以下命令,找到arms-prometheus的ClusterRole。 - kubectl get ClusterRoles --all-namespaces | grep prom
- 执行以下命令,删除上一步查询的ClusterRole。 - kubectl delete ClusterRole [$Cluster_Roles] -n arms-prom说明- [$Cluster_Roles] 为上一步查询的ClusterRole。 
- 如果删除后依然报错,需要查看报错信息中的kind值,查看是否存在ClusterRole以外的其他资源残留,使用类似方法,依次删除即可。 
适用于
- 应用实时监控ARMS 
- 可观测监控 Prometheus 版 
该文章对您有帮助吗?