Kubernetes Cost Optimization Cheat Sheet

Rightsize workloads, pause idle nodes, and monitor spend

Last Updated: November 21, 2025

Rightsizing Actions

Action Purpose
Set requests/limits Avoid CPU/memory waste
Use vertical pod autoscaler Adjust pods to demand
Group workloads per node type Match resource profiles

Cost Commands

kubectl top nodes
Inspect node usage
kubectl describe pod
See requests/limits
kubectl annotate node --overwrite
Mark spot-friendly nodes

Monitoring

Watch Prometheus + Grafana dashboards and alert on rising spend.

💡 Pro Tip: Automate rightsizing with metrics and mix reserved/spot workloads.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets