Why isn’t my deleted deployment reappearing?

0
3
Asked By TechieNinja42 On

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!

3 Answers

Answered By CandidCoder88 On

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.

Answered By HelpfulDev09 On

Have you enabled drift detection on your Helm release resource? That could help Flux notice changes when things get deleted and recreate them.

Answered By CodeMaster22 On

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?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.