Why isn't my deleted deployment reappearing?

April 17, 2025 3 answers
Asked by ninth_inning
Hey everyone! I'm facing an issue where when I delete a deployment in my setup, it doesn't come back automatically. Typically, I have to go through the steps of deleting the Helm release, reconciling Git, and then running 'flux reconcile helmrelease' to get both the Helm release and the deployment back. However, if I just delete the deployment, it won't return. Can anyone help me understand why this is happening or point me to a GitHub repository that could help? Thanks!

Answers

!Unmute the caller
When you delete a deployment, it typically removes its pods too. If you're looking to restart them, just deleting the pods should allow the deployment to create new ones for you. A deployment manages a replica set that ensures the desired number of pods is always running. What exactly are you trying to achieve here?
Reply to this answer
~cloud cover+
Have you enabled drift detection on your Helm release resource? That could help Flux notice changes when things get deleted and recreate them.
Reply to this answer
notebook_margin
If you've deleted the deployment, why would you expect it to come back? But with Flux, the idea is that it should detect the drift and recreate it from the HelmRelease definition unless something is misconfigured.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions