> ## Documentation Index
> Fetch the complete documentation index at: https://densify-sync-changelog-15.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Kubex Automation Engine Overview

Kubex Automation Engine is the Kubernetes rightsizing automation component that applies Kubex recommendations safely and continuously.

It uses policy-driven controls to decide:

* What workloads are eligible for automation
* Which resource dimensions can change
* How and when changes are applied
* Which safety checks must pass before any mutation

## Why This Matters

Automation Engine is designed to reduce manual tuning while preserving workload stability and platform controls.

Key outcomes include:

* Continuous rightsizing for CPU and memory
* Lower infrastructure waste
* Better scheduler packing efficiency
* Safer automation with Kubernetes-aware guardrails

## Core Components

A standard deployment includes:

* A single `kubex-automation-engine` deployment that evaluates policy, performs safety checks, and applies in-place or eviction-based resize
* Mutating admission webhook configuration for admission-time pod mutation
* Gateway sidecar that retrieves recommendations from Kubex
* Custom resources for global behavior, strategy, policy, and runtime evaluation state

## Key Features

* Declarative automation model using CRDs or Helm-generated resources
* Recommendation-driven and static policy support
* Zero-downtime optimization with in-place resize on Kubernetes 1.33+ and eviction fallback when required
* Namespaced and cluster-scoped control patterns
* Admission-time and proactive enforcement paths
* Fail-closed safety model with health gating and prechecks
* Smart pause control with per-pod annotations
* GitOps-friendly adoption path with backward compatibility for values-based settings

## Supported Workload Owners

Recommendation-driven automation can target:

* Deployment
* StatefulSet
* CronJob
* Rollout
* Job
* AnalysisRun
* StrimziPodSet
* DaemonSet

## Engine Model in One View

The Automation Engine separates behavior from scope:

* `AutomationStrategy` and `ClusterAutomationStrategy`: Define how rightsizing is allowed to happen
* `ProactivePolicy` and `ClusterProactivePolicy`: Define where recommendation-driven automation applies
* `StaticPolicy` and `ClusterStaticPolicy`: Define fixed resource behavior when recommendations are not used
* `GlobalConfiguration`: Defines cluster-wide runtime behavior

This makes automation easier to standardize across teams while still allowing namespace-level exceptions.

Important:

* Helm-managed `scope` and `policy.policies` preserve the existing values-driven flow by generating cluster-scoped strategy and proactive policy resources
* Namespaced `AutomationStrategy`, `ProactivePolicy`, `StaticPolicy`, and cluster static policies are supported by the controller and can be managed independently through CR manifests

## Deprecation Note

The older Kubex Automation Controller chart has been deprecated and replaced by Kubex Automation Engine.

## Official Source Documentation

* Helm chart root: [https://github.com/densify-dev/helm-charts/tree/master/charts/kubex-automation-engine](https://github.com/densify-dev/helm-charts/tree/master/charts/kubex-automation-engine)
* Chart README: [https://github.com/densify-dev/helm-charts/tree/master/charts/kubex-automation-engine/README.md](https://github.com/densify-dev/helm-charts/tree/master/charts/kubex-automation-engine/README.md)
