Strategy vs Policy
- Strategy: Defines how resource changes are allowed
- Policy: Defines where those rules apply and how recommendations are selected
Main CRD Types
Strategy CRs
AutomationStrategy(namespaced)ClusterAutomationStrategy(cluster scoped)
- Resource enablement for CPU and memory requests and limits
- In-place resize behavior
- Pod eviction fallback behavior
- Safety-check behavior
Policy CRs
ProactivePolicyandClusterProactivePolicy(recommendation-driven)StaticPolicyandClusterStaticPolicy(fixed resource values)
- Namespace and workload selection scope
- Strategy reference
- Resource targets (for static policies)
- Weight and precedence behavior
Mapping from Helm Values
When using Helm-managed policy generation:policy.policies.<name>creates aClusterAutomationStrategyscope[].namebecomesClusterProactivePolicy.metadata.namescope[].policy(orpolicy.defaultPolicy) references strategy name
scope and policy.policies preserve the values-driven flow from values-edit.yaml, while those generated CRs can still be managed independently when needed.
Namespaced AutomationStrategy, ProactivePolicy, StaticPolicy, and cluster static policies are supported by the controller and are commonly managed through dedicated CR manifests.
Scope Design Guidance
Recommended practices:- Keep policy ownership clear between platform and app teams
- Use separate strategies for conservative and aggressive automation profiles
- Use scope selectors to avoid broad accidental inclusion
- Validate precedence when scopes overlap
Deep References
- Policy Configuration Guide: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/docs/Policy-Configuration.md
- Policy Evaluation Reference: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/docs/Policy-Evaluation.md
- Cluster Automation Strategies: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/docs/Cluster-Automation-Strategies.md
- Cluster Proactive Policies: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/docs/Cluster-Proactive-Policies.md
- Static Policies: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/docs/Static-Policies.md

