cyberneticlibrary

Optimize Kubernetes cluster costs

k8s-costskillsetup L2908
rohitg00/kubectl-mcp-server
What it does

Analyze and optimize Kubernetes spending via right-sizing and unused-resource cleanup

Best for

Reducing cloud spend by identifying over-provisioned pods and orphaned storage faster than manual audit

Inputs
  • · namespace, resource type, utilization threshold
Outputs
  • · Cost breakdown, right-sizing recommendations, cleanup candidates
Requires
  • · kubectl
  • · metrics-server (for pod usage)
Preconditions

Cluster has metrics-server; user has list/get RBAC

Failure modes
  • · metrics-server missing
  • · no historical metrics
  • · quota enforcement blocks scaling
Trust signals
  • · 8 cost-specific tools
  • · Right-sizing guidelines
  • · KEDA integration for scale-to-zero