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

April 25, 2024

The use of hybrid multicloud models is forecasted to double over the next one to three years as IT decision makers are facing new pressures to modernize IT infrastructures because of drivers like AI, security, and sustainability, according to the Enterprise Cloud Index (ECI) report from Nutanix ...

April 24, 2024

Over the last 20 years Digital Employee Experience has become a necessity for companies committed to digital transformation and improving IT experiences. In fact, by 2025, more than 50% of IT organizations will use digital employee experience to prioritize and measure digital initiative success ...

April 23, 2024

While most companies are now deploying cloud-based technologies, the 2024 Secure Cloud Networking Field Report from Aviatrix found that there is a silent struggle to maximize value from those investments. Many of the challenges organizations have faced over the past several years have evolved, but continue today ...

April 22, 2024

In our latest research, Cisco's The App Attention Index 2023: Beware the Application Generation, 62% of consumers report their expectations for digital experiences are far higher than they were two years ago, and 64% state they are less forgiving of poor digital services than they were just 12 months ago ...

April 19, 2024

In MEAN TIME TO INSIGHT Episode 5, Shamus McGillicuddy, VP of Research, Network Infrastructure and Operations, at EMA discusses the network source of truth ...

April 18, 2024

A vast majority (89%) of organizations have rapidly expanded their technology in the past few years and three quarters (76%) say it's brought with it increased "chaos" that they have to manage, according to Situation Report 2024: Managing Technology Chaos from Software AG ...

April 17, 2024

In 2024 the number one challenge facing IT teams is a lack of skilled workers, and many are turning to automation as an answer, according to IT Trends: 2024 Industry Report ...

April 16, 2024

Organizations are continuing to embrace multicloud environments and cloud-native architectures to enable rapid transformation and deliver secure innovation. However, despite the speed, scale, and agility enabled by these modern cloud ecosystems, organizations are struggling to manage the explosion of data they create, according to The state of observability 2024: Overcoming complexity through AI-driven analytics and automation strategies, a report from Dynatrace ...

April 15, 2024

Organizations recognize the value of observability, but only 10% of them are actually practicing full observability of their applications and infrastructure. This is among the key findings from the recently completed Logz.io 2024 Observability Pulse Survey and Report ...

April 11, 2024

Businesses must adopt a comprehensive Internet Performance Monitoring (IPM) strategy, says Enterprise Management Associates (EMA), a leading IT analyst research firm. This strategy is crucial to bridge the significant observability gap within today's complex IT infrastructures. The recommendation is particularly timely, given that 99% of enterprises are expanding their use of the Internet as a primary connectivity conduit while facing challenges due to the inefficiency of multiple, disjointed monitoring tools, according to Modern Enterprises Must Boost Observability with Internet Performance Monitoring, a new report from EMA and Catchpoint ...