[英]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.