简体   繁体   English

argocd 无法使用 --cascade 删除应用程序资源

[英]argocd Unable to delete application resource with --cascade

I'm trying to delete the argo app with argocd app delete Prometheus --cascade command.我正在尝试使用argocd app delete Prometheus --cascade命令删除 argo 应用程序。

It's prompting for confirmation after pressing y able to delete resources but some of the resources are not deleting.y可以删除资源后提示确认,但某些资源没有删除。

Are you sure you want to delete 'prometheus' and all its resources? [y/n]

How can I confirm that some of the resources are not deleted?如何确认某些资源没有被删除?

kubectl get all -n prometheus

NAME READY AGE statefulset.apps/alertmanager-prometheus-2-kube-promethe-alertmanager 1/1 39m NAME READY AGE statefulset.apps/alertmanager-prometheus-2-kube-promethe-alertmanager 1/1 39m

What I'm looking for?我在找什么?

I need the solution for delete the all resources with argocd我需要使用 argocd 删除所有资源的解决方案

Usually this is due to child resources created by an application that are pending deletion (probably due to a finalizer on that resource).通常这是由于应用程序创建的子资源正在等待删除(可能是由于该资源上的终结器)。
As a matter of fact, k get all wont show you everything at all;事实上, k get all不会显示所有内容。 it wont show secrets, configmaps, serviceaccounts etc, and of course not any CR used by Prometheus.它不会显示机密、配置映射、服务帐户等,当然也不会显示 Prometheus 使用的任何 CR。 So to investigate further and see those resources that are still there, you will need to query specifically using k get <type> .因此,要进一步调查并查看那些仍然存在的资源,您需要专门使用k get <type>进行查询。
Or, use a hammer and query everything in that namespace或者,使用锤子查询该命名空间中的所有内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:安装失败:呈现的清单包含已存在的资源。 无法继续安装:ClusterRole“prometheus-kube - Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "prometheus-kube 在 Prometheus 警报中的活动 state 中无法看到警报 - Unable to see Alert in active state in Prometheus Alerts 无法在 Prometheus Alert Manager 中看到警报 - Unable to see Alerts in Prometheus Alert Manager Prometheus Alertmanger delete All silences using curl. REST API - Prometheus Alertmanger delete All silences using curl. REST API 使用 Prometheus 监控 Spring Boot 应用程序 - Spring Boot application monitoring with Prometheus 如何为资源配额 k8s 创建警报以发送警报,例如 Prometheus - How create a alert to the resource quotas k8s to send alert for example Prometheus Prometheus Alert Manager 错误“组件=集群 err=”无法推断出广告地址“和”无法初始化 gossip 网格“ - Prometheus Alert Manager error “component=cluster err=”couldn't deduce an advertise address“ and ”unable to initialize gossip mesh" AWS Managed Prometheus Alert Manager 无法(轻松)使用 Grafana 静音警报 - AWS Managed Prometheus Alert Manager unable to (easily) silence alerts using Grafana
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM