文档

可观测监控 Prometheus 版无法重新安装出现报错“rendered manifests contain a resource that already exists”

更新时间:

问题描述

卸载可观测监控 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后,可能会存在角色等资源残留。

解决方案

如果出现该问题,需要按照以下步骤进行处理:

  1. 执行以下命令,找到arms-prometheus的ClusterRole。

    kubectl get ClusterRoles --all-namespaces | grep prom

  2. 执行以下命令,删除上一步查询的ClusterRole。

     kubectl delete ClusterRole [$Cluster_Roles] -n arms-prom
    说明

    [$Cluster_Roles] 为上一步查询的ClusterRole。

  3. 如果删除后依然报错,需要查看报错信息中的kind值,查看是否存在ClusterRole以外的其他资源残留,使用类似方法,依次删除即可。

适用于

  • 应用实时监控ARMS

  • 可观测监控 Prometheus 版

  • 本页导读 (1)
文档反馈