Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Production-grade Kubernetes cost management covering resource optimization, autoscaling, and FinOps practices. This skill provides deep expertise in achieving 30-50% cost reduction while maintaining performance and reliability.
Core Competencies
1. Resource Right-Sizing
Vertical Pod Autoscaler
apiVersion:autoscaling.k8s.io/v1kind:VerticalPodAutoscalermetadata:name:api-server-vpaspec:targetRef:apiVersion:apps/v1kind:Deploymentname:api-serverupdatePolicy:updateMode:"Auto"# or "Off" for recommendations onlyresourcePolicy:containerPolicies:-containerName:api-serverminAllowed:cpu:100mmemory:128MimaxAllowed:cpu:4memory:8GicontrolledResources: ["cpu", "memory"]
Resource Recommendations Analysis
# Get VPA recommendations
kubectl describe vpa api-server-vpa
# Check current vs recommended
kubectl get vpa api-server-vpa -o jsonpath='{.status.recommendation}'# Goldilocks for all deployments
kubectl apply -f https://github.com/FairwindsOps/goldilocks/releases/latest/download/goldilocks.yaml
kubectl label namespace production goldilocks.fairwinds.com/enabled=
apiVersion:keda.sh/v1alpha1kind:ScaledObjectmetadata:name:api-serverspec:scaleTargetRef:name:api-serverminReplicaCount:0# Scale to zero!maxReplicaCount:50triggers:-type:prometheusmetadata:serverAddress:http://prometheus:9090metricName:http_requests_totalquery:sum(rate(http_requests_total{app="api-server"}[1m]))threshold:"100"-type:cronmetadata:timezone:America/New_Yorkstart:08**1-5end:020**1-5desiredReplicas:"5"
High Costs?
│
├── Over-provisioned
│ ├── Check VPA recommendations
│ ├── Right-size requests
│ └── Enable HPA
│
├── Idle resources
│ ├── Find unused PVCs
│ ├── Check scale-to-zero
│ └── Clean up stale jobs
│
└── Wrong instance types
├── Use spot for batch
├── Review node pools
└── Check reserved coverage
Debug Commands
# Cost analysis
kubectl top pods -A --sort-by=cpu
kubectl top pods -A --sort-by=memory
# Resource efficiency
kubectl get pods -A -o json | jq '[.items[].spec.containers[].resources] | add'# Kubecost API
curl http://kubecost:9090/model/allocation?window=7d&aggregate=namespace