Open gigi206 opened 2 years ago
Same for me. I am using LetsEncrypt ClusterIssuer to issue the certificates, but I am also receiving the following kubernetes logs:
develop 0s Normal CreateCertificate ingress/dev-ingress Successfully created Certificate "dev-ingress-tls"
The current solution for me it to orphan delete the ingress manually, which is quite time consuming for several apps
I think this may relate to #6873 I'm seeing this too, if we do a cascade delete of an ingress using certmanager tls, argo and cert-manager get stuck in a delete-create loop.
Also seeing this behaviour with deletion of Argo applicationsets since under the hood it is removing an argo application. Currently on Argocd v2.2.5
same here, the only thing that worked for me is to delete ingress manually.
Cert-manager apparently does not work well with the default prune deletion propagation policy of foreground
, as explained here. So setting
spec:
syncPolicy:
syncOptions:
- PrunePropagationPolicy=background
in your Application manifest, makes the deletion much faster
Even when setting background propagation policy in Argo CD 2.5.7 the Certificate resource is still deleted with with foreground finalizer so above fix currently doesn't work.
@pdrastil is that reproducible? If so, sounds like a bug in the application-controller. It should respect the configured propagation policy.
@crenshaw-dev I believe so - repro steps described in https://github.com/argoproj/argo-cd/issues/12453
Checklist:
argocd version
.Describe the bug If you install an application that requires a certificate generated by cert-manager and after you delete it on the web UI, you have a chance to be stuck for a long time because cert-manager tries to recreate immediately the certificate
To Reproduce
First, install cert-manager:
Create and apply the following file
cluster-issuer.yaml
:Install an app that require a certificate:
Sometimes the application get stuck for a long time before completly deleting If I delete the namespace it solve this issue.
Expected behavior
When I click on the delete button, the application must be deleted
Version
Logs Command
argocd --port-forward --port-forward-namespace argo-cd --insecure app logs gitea
show nothing