Skip to content

Cost optimization

  • Right Sizing

  • Utilize pod requests, limits, resource quotas

  • Use open source, third-party tools to tune pod requests, limits

  • Auto Scaling

  • Once pods are optimized, enable auto scaling

  • Utilize HPA, Cluster Autoscaling, Proportional Autoscaling

  • Down Scaling

  • Terminate pods unnecessary during nights, weekends

  • Utilize DevOps

  • EC2 Purchase Options

  • Use RI, Spot, Savings Plan

Tools

Opensource

  • rsg (Right Size guide)

  • Kubecost (free with limitations)

  • Kubernetes Resource Report

  • Goldilocks

Third Party

  • Kubecost

  • New Relic

  • CloudHealth by vmware

Demo

DOCS

kubectl create namespace kubecost
helm repo add kubecost https://kubecost.github.io/cost-analyzer/
helm install kubecost kubecost/cost-analyzer --namespace kubecost --set kubecostToken="ZWZlZmVAZ21haWwuY29txm343yadf98"
kubectl port-forward --namespace kubecost deployment/kubecost-cost-analyzer 9090

http://localhost:9090