Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to temporarily scale down all apps from the ui, then back to normal #11451

Open
tooptoop4 opened this issue Nov 28, 2022 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@tooptoop4
Copy link

if some apps use a user/pw, a pw rotation can cause the user account to get locked as the apps still trying to use old pw

would be great to have button in the ui to scale down the apps to 0 replicas, do the rotation inc update k8s secrets, click button to rescale up all apps to their original replicas

@tooptoop4 tooptoop4 added the enhancement New feature or request label Nov 28, 2022
@nabilbendafi
Copy link
Contributor

@tooptoop4 I don't see how that can't already be possible using simple Restart behavior of Deployment via ArgoCD UI.
Click in to see the Restart action menu. This will perform a rollout of the Deployment where your Pods will restart with whatever (new) Secret's value they found.

That assumes one have enough privilege on ArgoCD UI to do so (cf https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac)
ex.

          p, role:admin, applications, action/apps/Deployment/restart, */*, allow

ref.:

@tooptoop4
Copy link
Author

the timing is important - I need pods to be down while I rotate pw and update secret (else the pods keep using old pw and lock the account), only after rotate pw/secret is done do I want the pods to start up

also want to apply to all apps with single click, not clicking through 100s of deployments

@psibi
Copy link

psibi commented Nov 1, 2023

I also came across this use case recently where I have to temporarily scale down the deployment before doing a database migration.

It would be nice to have a UI feature/Argocd cli way to do it.

@crenshaw-dev
Copy link
Member

@tooptoop4 do you need the ability to scale down more than one app, or just one app at a time? If just one app, I think this is a duplicate of #3039 and could be solved by implementing this suggestion: #3039 (comment)

@jnkxcel
Copy link

jnkxcel commented Apr 23, 2024

So there is actually a way to temporarily scale down a deployment in argocd. You need to go to the workload you want to scale down, select the deployment, find the replica key:value select to edit the deployment, move it to 0 and save. You will want to edit the application in Argo so its set to manual sync and not auto. This will effectively scale it down then you can deploy new stuff via code refresh and sync and it will scale back up to whatever replica count is set in codes. Took me long time to find this work around and is kind of janky but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants