Recommendations > Pod scheduling
Automated node affinity for proportional resource scheduling
Whether or not node affinity is included in recommendation patches depends on the optimization policy selected.
Annotation | Default value |
---|---|
live.stormforge.io/pod-scheduling.optimization-policy |
DoNotOptimize |
Optimize Live recommends an instance category for pod scheduling by default, but that recommendation will not be included in patches unless an optimization policy is configured.
Instance category node affinity recommendations can be added to patches by setting the optimization policy to InstanceCategories
.
DoNotOptimize
InstanceCategories
Annotation | Default value |
---|---|
live.stormforge.io/pod-scheduling.instance-categories.node-affinity.type |
preferred |
Specifies which node affinity type to use when patching in node affinity settings.
Instance category recommendations will only be included in Optimize Live patches if you have configured a specific node affinity type. By default, no node affinity type is configured.
The available settings align with Kubernetes node affinity types.
preferred
– alias for PreferredDuringSchedulingIgnoredDuringExecution
required
– alias for RequiredDuringSchedulingIgnoredDuringExecution
Annotation | Default value |
---|---|
live.stormforge.io/pod-scheduling.instance-categories.node-affinity.weight |
"70" |
Specifies a weight for a preferred
affinity.
This setting has no effect when affinity type is set to required
.
Annotation | Default value |
---|---|
live.stormforge.io/pod-scheduling.instance-categories.node-affinity.patch-path |
None |
Indicates the absolute JSON pointer path to the field where the value is stored on the patched resource.
This can be used to fine-tune StormForge patching behavior when optimizing custom CRD and operator-owned workload types.
/spec/template/spec/affinity/nodeAffinity
Annotation | Default value |
---|---|
live.stormforge.io/pod-scheduling.instance-categories.node-affinity.patch-format |
None |
Defines the Go template that formats the value for the patched resource.
This can be used to fine-tune StormForge patching behavior when optimizing custom CRD and operator-owned workload types.
Automated node affinity for proportional resource scheduling