Loading...
Loading...
Optimize Kubernetes costs through resource right-sizing, unused resource detection, and cluster efficiency analysis. Use for cost optimization, resource analysis, and capacity planning.
npx skill4agent add rohitg00/kubectl-mcp-server k8s-cost| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Find and delete unused PVCs | CRITICAL | |
| 2 | Right-size overprovisioned pods | HIGH | |
| 3 | Identify idle LoadBalancers | HIGH | |
| 4 | Scale down non-prod off-hours | MEDIUM | |
| 5 | Consolidate small namespaces | LOW | Analysis |
| Task | Tool | Example |
|---|---|---|
| Namespace cost | | |
| Cluster cost | | |
| Unused PVCs | | |
| Right-sizing | | |
get_namespace_cost(namespace)
get_cluster_cost()find_unused_resources(namespace)
find_orphaned_pvcs(namespace)get_resource_recommendations(namespace)
get_pod_metrics(name, namespace)get_resource_recommendations(namespace="production")
get_pod_metrics(name, namespace)
get_resource_usage(namespace)find_orphaned_pvcs(namespace)
find_unused_resources(namespace)get_nodes()
get_node_metrics()| Current State | Recommendation |
|---|---|
| CPU usage < 10% of request | Reduce request by 50% |
| CPU usage > 80% of request | Increase request by 25% |
| Memory < 50% of request | Reduce request |
| Memory near limit | Increase limit, monitor OOM |
get_resource_usage(namespace)
get_pod_metrics(name, namespace)get_pvc(namespace)
find_orphaned_pvcs(namespace)get_services(namespace)get_cluster_cost(context="production")
get_cluster_cost(context="staging")
get_cluster_cost(context="development")find_orphaned_pvcs()get_resource_recommendations()keda_scaledobjects_list_tool(namespace)
keda_scaledobject_get_tool(name, namespace)