Introduction to OptiPod
What is OptiPod?
Section titled “What is OptiPod?”OptiPod is an open-source Kubernetes operator that helps you optimize resource requests and limits for your workloads. It analyzes actual resource usage and provides recommendations to right-size your containers, reducing waste and improving cluster efficiency.
Why OptiPod Exists
Section titled “Why OptiPod Exists”Kubernetes requires you to specify resource requests and limits for your containers, but getting these values right is challenging:
- Overprovisioning wastes cluster resources and increases costs
- Underprovisioning causes performance issues and OOM kills
- Manual tuning is time-consuming and error-prone
- VPA (Vertical Pod Autoscaler) can conflict with GitOps workflows
OptiPod solves these problems by providing safe, explainable, and GitOps-friendly resource optimization.
Key Differences from VPA
Section titled “Key Differences from VPA”| Feature | OptiPod | VPA |
|---|---|---|
| GitOps-safe | ✅ Yes | ❌ Webhook conflicts |
| Explainable recommendations | ✅ Yes | ❌ Opaque |
| Policy-driven control | ✅ Fine-grained | ⚠️ Limited |
| Recommend-only mode | ✅ Yes | ✅ Yes |
| Auto-apply mode | ✅ With safeguards | ✅ Yes |
| Update strategy options | ✅ Webhook or SSA | ⚠️ Webhook only |
| Memory safety guardrails | ✅ Yes | ⚠️ Basic |
How It Works
Section titled “How It Works”- Deploy OptiPod operator in your cluster
- Create OptimizationPolicy CRDs to define what to optimize
- Label workloads to opt-in to optimization
- Review recommendations stored as annotations on your workloads
- Apply changes manually or let OptiPod auto-apply with safety guardrails
Operational Modes
Section titled “Operational Modes”OptiPod supports three operational modes:
Recommend Mode (Default)
Section titled “Recommend Mode (Default)”- OptiPod analyzes workloads and stores recommendations as annotations
- You review and apply changes manually (via GitOps or kubectl)
- Best for: Getting started, testing, GitOps-strict environments
Auto Mode
Section titled “Auto Mode”- OptiPod automatically applies recommendations with safety guardrails
- Conservative defaults prevent dangerous changes
- Change-rate limits prevent rapid oscillation
- Best for: Production environments with confidence in OptiPod
Disabled Mode
Section titled “Disabled Mode”- OptiPod stops analyzing and updating workloads
- Existing recommendations remain but aren’t updated
- Best for: Temporary pauses or troubleshooting
Safety Model
Section titled “Safety Model”OptiPod is designed with safety as a top priority:
- Conservative defaults: Never reduce memory below safe thresholds
- Policy-driven controls: You define bounds and change limits
- Memory safeguards: Prevents OOM kills from aggressive reductions
- Configurable safety factors: Apply multipliers to recommendations
Next Steps
Section titled “Next Steps”Ready to get started? Follow our installation guide:
Or learn more about core concepts: