3 Tips for Keeping Kubernetes Costs Low
June 27, 2023

Michael Cade
Kasten by Veeam

Share this

Kubernetes is taking the IT world by storm – according to Red Hat, 68% of IT leaders are currently running containers in their organization, with nearly one-third planning to significantly increase usage within the year. With a projected market size of $7.8 billion by 2030, it's clear Kubernetes is here to stay.


However, recent findings from Pepperdata highlight one of the biggest challenges in the industry: surprise costs. The survey of IT leaders found that surprise costs ranked highest among key challenges, with nearly 60% experiencing significant or unexpected spending on computation, storage networking infrastructures and cloud-based IaaS. As the platform continues to permeate nearly every industry imaginable, managing unexpected costs is going to be top of mind for Kubernetes practitioners.

Prior to undertaking a Kubernetes deployment, IT leaders need to be aware of the potential pitfalls and how to address them, and optimizing costs might be the most important consideration. Kubernetes has the ability to run stateful workloads at scale and can even autoscale to achieve cost optimization in a more agile way. However, leaders must ensure their deployments meet the specific needs of the organizations, rather than a one-size-fits-all approach.

Once initial actions have been addressed, it's important for IT leaders to look at three ways to keep surprise costs low and optimize their spend, all without having to scale back on deployments.

1. Autoscale, Autoscale, Autoscale

Autoscaling helps IT leaders ensure that their containers are running in a stable way during times of peak demand, while keeping costs low during slower periods. Failure to implement autoscaling can result in a slow drain on resources, as users pay for resources that aren't being used during low demand hours, and even a freeze on the system (if it cannot keep up with peak demand).

According to Kubernetes.io, horizontal pod autoscaling (HPA) is a powerful tool that allows users to automatically scale the workload to meet demand. It tells the workload resource to either scale up or down – which is done by adding or reducing the number of pods, respectively – dependent on the current workload.

HPA is an incredibly effective way to manage resources and help IT leaders optimize the infrastructure of their clusters. For some, however, vertical pod autoscaling (VPA) may be a more attractive option. VPA assigns more resources to the pods that are already running for the workload, which is helpful for organizations that are unable to define a proper number of resources.

It's important to do research and understand which method is most effective for your business before implementing autoscaling policies, but both are useful to keep day-to-day costs steady.

2. Lowering Compute Costs with Spot Instances

Spot instances refer to computing capacity that isn't being used, usually sitting in the cloud or sometimes on-premises. Cloud providers need to have a certain amount of capacity available because they promise scalability to customers, but it often sits unused for flexibility purposes.

In some cases, Kubernetes users can actually receive large discounts from their provider by incentivizing them to use up this extra capacity, rather than letting it sit empty. The caveat is that the cloud providers can take the capacity back when they need it, and Kubernetes users would have to drain the pods in the cluster and return the capacity. Spot instances also require an upfront cost to reserve the instance, should you need it.

However, according to a D Zone and Kasten report, using spot instances properly can help users reduce their overall computer bill in the cloud by 65-90%. That's huge in terms of real dollars and is a really simple way to manage overall Kubernetes computing costs.

However, it's important to note that these cost savings can come at the risk of losing capacity when you need it. What's more important to you – ensuring total reliability all the time, or saving big on cloud costs to keep your deployments under budget? These are key questions to ask during the process.

Don't Forget to Reschedule!

The report also notes that configuring pod disruption budgets is a great way to avoid disruption in your Kubernetes workloads. But to start, make sure to reschedule your pods from time to time to ensure they're running at maximum efficiency.

Kubernetes is great about putting pods in the right spot at the right time, but they may be more efficient in other spots later on. Rescheduling your pods frequently to keep usage in the cluster running at optimal capacity is another simple way to optimize computing costs.

Kubernetes is a rapidly growing – and yet incredibly mature – industry that is beginning to touch all aspects of the business world. However it's clear that organizations are struggling to both anticipate and manage the additional costs that come with their complex workloads.

The impact of Kubernetes will only increase in the coming years, so it's important to arm yourself with the proper skills to stay ahead. Following these simple steps is a great way to begin, and beginners can also get up to speed quickly with various learning courses. Though the current knowledge gap in Kubernetes is a top issue facing developers and organizations as a whole, sharing what we know with our peers is the best way our community can support itself.

Michael Cade is the Global Field CTO for Kasten by Veeam
Share this

The Latest

December 04, 2024

Technology leaders will invest in AI-driven customer experience (CX) strategies in the year ahead as they build more dynamic, relevant and meaningful connections with their target audiences ... As AI shifts the CX paradigm from reactive to proactive, tech leaders and their teams will embrace these five AI-driven strategies that will improve customer support and cybersecurity while providing smoother, more reliable service offerings ...

December 03, 2024

We're at a critical inflection point in the data landscape. In our recent survey of executive leaders in the data space — The State of Data Observability in 2024 — we found that while 92% of organizations now consider data reliability core to their strategy, most still struggle with fundamental visibility challenges ...

December 02, 2024

From the accelerating adoption of artificial intelligence (AI) and generative AI (GenAI) to the ongoing challenges of cost optimization and security, these IT leaders are navigating a complex and rapidly evolving landscape. Here's what you should know about the top priorities shaping the year ahead ...

November 26, 2024

In the heat of the holiday online shopping rush, retailers face persistent challenges such as increased web traffic or cyber threats that can lead to high-impact outages. With profit margins under high pressure, retailers are prioritizing strategic investments to help drive business value while improving the customer experience ...

November 25, 2024

In a fast-paced industry where customer service is a priority, the opportunity to use AI to personalize products and services, revolutionize delivery channels, and effectively manage peaks in demand such as Black Friday and Cyber Monday are vast. By leveraging AI to streamline demand forecasting, optimize inventory, personalize customer interactions, and adjust pricing, retailers can have a better handle on these stress points, and deliver a seamless digital experience ...

November 21, 2024

Broad proliferation of cloud infrastructure combined with continued support for remote workers is driving increased complexity and visibility challenges for network operations teams, according to new research conducted by Dimensional Research and sponsored by Broadcom ...

November 20, 2024

New research from ServiceNow and ThoughtLab reveals that less than 30% of banks feel their transformation efforts are meeting evolving customer digital needs. Additionally, 52% say they must revamp their strategy to counter competition from outside the sector. Adapting to these challenges isn't just about staying competitive — it's about staying in business ...

November 19, 2024

Leaders in the financial services sector are bullish on AI, with 95% of business and IT decision makers saying that AI is a top C-Suite priority, and 96% of respondents believing it provides their business a competitive advantage, according to Riverbed's Global AI and Digital Experience Survey ...

November 18, 2024

SLOs have long been a staple for DevOps teams to monitor the health of their applications and infrastructure ... Now, as digital trends have shifted, more and more teams are looking to adapt this model for the mobile environment. This, however, is not without its challenges ...

November 14, 2024

Modernizing IT infrastructure has become essential for organizations striving to remain competitive. This modernization extends beyond merely upgrading hardware or software; it involves strategically leveraging new technologies like AI and cloud computing to enhance operational efficiency, increase data accessibility, and improve the end-user experience ...