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¶
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"
http://localhost:9090