可觀測監控 Prometheus 版無法重新安裝出現報錯“rendered manifests contain a resource that already exists”
更新時間:
Copy as MD
問題描述
卸載可觀測監控 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 版
该文章对您有帮助吗?