You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following situation with one component of the package I am trying to write a Helm chart for: Even though the component is scalable, it's important that it's scaled down to just 1 instance prior to being upgraded (correct: this leads to a little bit of downtime), and after a new version has been installed, the component can be scaled up again.
Can I accomplish this using Helm hooks (or other means)? With bash scripts, I run a kubectl scale on the correspoding deployment, can I incorporate this kind of logic into the Helm chart? Do I need a Rudder?
Best regards,
Martin
The text was updated successfully, but these errors were encountered:
For pre-upgrade, use a Job with an image which contains kubectl and does just that, kubectl scale deployment <...> --replicas=1, e.g. inside a bash script or so
Deploy new version with a fixed replica count of 1
Another Job which runs kubectl with the in-cluster configuration to set the replica count to the desired number of replicas, once more using some kind of scripting
Is this how you would do it today? Are there plans on supporting these kinds of things more explicitly?
(The above assumes that replicaCount is the correct name for whatever {{.Value}} has the replica count)
The reason for doing it this way is that Helm tracks each step of state here, and you don't run the risk of getting into a situation in which Helm cannot recover because some other process modified and broke the manifest files.
Hi there,
I have the following situation with one component of the package I am trying to write a Helm chart for: Even though the component is scalable, it's important that it's scaled down to just 1 instance prior to being upgraded (correct: this leads to a little bit of downtime), and after a new version has been installed, the component can be scaled up again.
Can I accomplish this using Helm hooks (or other means)? With
bash
scripts, I run akubectl scale
on the correspoding deployment, can I incorporate this kind of logic into the Helm chart? Do I need a Rudder?Best regards,
Martin
The text was updated successfully, but these errors were encountered: