Intelligent CIO North America Issue 18 | Page 77

t cht lk

t cht lk

Even small steps for software engineers toward monitoring Kubernetes costs have a swift and beneficial impact on budgets .
allocations are carefully delineated ; for example , allocating by namespace offers a clear-cut approach .
• Decide if allocations are based on resource requests or usage ( using the maximum of requests and usage is recommended , but only if teams are able to control those settings ).
• Lastly , decide how to fairly bill teams responsible for costly but non-recurring jobs , such as research projects .
3 . Assign each resource a clear owner
Use an escalation approach ( defined further in this paragraph ) in conjunction with an admission controller to establish the owner of each resource .
To implement an escalation approach , define the owner ’ s label at the deployment , namespace and cluster levels , enabling a clear escalation path in case issues occur . An Open Policy Agent or admission controller webhook can enforce these labels .
4 . Regularly review spending data
Starting out with a limited monitoring or showback method offers teams time to vet the fairness of the costs allocated to them and to introduce cost controls thoughtfully , before the bills begin arriving .
2 . Demonstrate the fairness of cost allocations through transparency
By its nature as a distributed system , Kubernetes makes cost allocation complicated . Achieving fairness and buy-in across teams requires completely transparent and reproducible allocation models . Be sure to audit these findings as well , to verify that all costs assigned to teams are correct . Importantly , allocation data must also be actionableenabling teams to clearly and directly address their sources of overspending .
To ensure fair and actionable data , look at the following criteria :
Proactive data review ( weekly is ideal , to avoid monthend surprises ) enables teams to rapidly identify overspend and avoid expensive future waste . Set up automated alerts to warn teams about excessive or unusual resource usage that would result in cost overages if left unchecked .
Cultural implementation can be the hardest part
From a technical perspective , implementing cost controls for Kubernetes spending isn ’ t inherently challenging . But it also isn ’ t effective unless the organization ’ s culture trusts and supports those cost management methods .
By ensuring the transparency , accuracy and fairness of allocated costs , and by providing the monitoring and tooling to enable teams to make those data-backed cost control decisions , that necessary culture will arrive .
• Consider how idle resources are allocated ( often this relates to whoever makes provisioning decisions at the cluster level ).
• Look at allocation of system-wide or shared resources .
• Make sure that team or business unit resource
Utilizing the methods detailed above , organizations can successfully prepare teams that are more mindful of Kubernetes spending and empowered to reduce costs where feasible ( likely by 30 % or more in many cases ), while also achieving related productivity benefits . p
www . intelligentcio . com INTELLIGENTCIO NORTH AMERICA 77