InstallationAdvanced installation
Learn how to install the StormForge Agent in more advanced scenarios such as using a proxy server or a private repository
You're viewing the 2.x documentation. For the most recent release, see the latest StormForge documentation.
3 minute read
During a workload’s learning period, you can apply its preliminary recommendations only manually. After the learning period, you can deploy recommendations using any of the following methods.
By default, StormForge applies recommendations as patches to a workload. You can instead configure StormForge to apply recommendations directly to Pods through a mutating admission webhook. Consider a webhook if you use third-party tools that monitor for configuration drift, or if you have many custom resources.
The Applier uses the configured apply method: PatchImmediateRollout, WebhookImmediateRollout, WebhookHybridRollout, or WebhookDeferredRollout. For details, see Apply method in Apply settings.
With PatchImmediateRollout, you can also configure the Applier to reconcile workload drift automatically, so CI/CD and deployment activity on the cluster don’t overwrite the recommended settings. For details, see Continuous reconciliation in Applier configuration.
Requires the StormForge Applier.
Apply a single recommendation outside the schedule, for example, while you experiment with recommendations.
The Applier deploys the recommendation using the configured apply method.
Requires the StormForge Applier.
With automatic deployment, StormForge applies each new recommendation without manual review. To enable it, set the live.stormforge.io/auto-deploy annotation to "Enabled", as described in Auto-deploy. The Applier deploys each recommendation using the configured apply method.
By default, StormForge generates and applies a new recommendation once a day. You can change the recommendation schedule based on how closely you want to track CPU and memory usage and how much pod churn you can tolerate. To avoid restarting many workloads at once, StormForge staggers recommendations across the schedule period when the schedule is an ISO 8601 duration or an equivalent macro. For details, see Schedule.
When automatic deployment is enabled, you can also configure:
You can apply recommendations as patches without the StormForge Applier, for example, as part of a CI/CD workflow. Because these methods don’t use the Applier, any configured apply method is ignored.
Run the stormforge apply command with the appropriate flags. For details, see the CLI reference.
kubectl command shown below it.After applying a recommendation, check the workload’s updated optimization score on the Workloads page or the workload details page. The next recommendation is available at the time shown in Next scheduled on the Recommendation card. To receive recommendations more or less often, adjust the recommendation schedule.
To roll back a recommendation, use Git or Kubernetes-native tools.