Skip to main content

3 Tips for Keeping Kubernetes Costs Low

Michael Cade
Kasten by Veeam

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

The Latest

A recent Rocket Software and Foundry study found that just 28% of organizations fully leverage their mainframe data, a concerning statistic given its critical role in powering AI models, predictive analytics, and informed decision-making ...

What kind of ROI is your organization seeing on its technology investments? If your answer is "it's complicated," you're not alone. According to a recent study conducted by Apptio ... there is a disconnect between enterprise technology spending and organizations' ability to measure the results ...

In today’s data and AI driven world, enterprises across industries are utilizing AI to invent new business models, reimagine business and achieve efficiency in operations. However, enterprises may face challenges like flawed or biased AI decisions, sensitive data breaches and rising regulatory risks ...

In MEAN TIME TO INSIGHT Episode 12, Shamus McGillicuddy, VP of Research, Network Infrastructure and Operations, at EMA discusses purchasing new network observability solutions.... 

There's an image problem with mobile app security. While it's critical for highly regulated industries like financial services, it is often overlooked in others. This usually comes down to development priorities, which typically fall into three categories: user experience, app performance, and app security. When dealing with finite resources such as time, shifting priorities, and team skill sets, engineering teams often have to prioritize one over the others. Usually, security is the odd man out ...

Image
Guardsquare

IT outages, caused by poor-quality software updates, are no longer rare incidents but rather frequent occurrences, directly impacting over half of US consumers. According to the 2024 Software Failure Sentiment Report from Harness, many now equate these failures to critical public health crises ...

In just a few months, Google will again head to Washington DC and meet with the government for a two-week remedy trial to cement the fate of what happens to Chrome and its search business in the face of ongoing antitrust court case(s). Or, Google may proactively decide to make changes, putting the power in its hands to outline a suitable remedy. Regardless of the outcome, one thing is sure: there will be far more implications for AI than just a shift in Google's Search business ... 

Image
Chrome

In today's fast-paced digital world, Application Performance Monitoring (APM) is crucial for maintaining the health of an organization's digital ecosystem. However, the complexities of modern IT environments, including distributed architectures, hybrid clouds, and dynamic workloads, present significant challenges ... This blog explores the challenges of implementing application performance monitoring (APM) and offers strategies for overcoming them ...

Service disruptions remain a critical concern for IT and business executives, with 88% of respondents saying they believe another major incident will occur in the next 12 months, according to a study from PagerDuty ...

IT infrastructure (on-premises, cloud, or hybrid) is becoming larger and more complex. IT management tools need data to drive better decision making and more process automation to complement manual intervention by IT staff. That is why smart organizations invest in the systems and strategies needed to make their IT infrastructure more resilient in the event of disruption, and why many are turning to application performance monitoring (APM) in conjunction with high availability (HA) clusters ...

3 Tips for Keeping Kubernetes Costs Low

Michael Cade
Kasten by Veeam

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

The Latest

A recent Rocket Software and Foundry study found that just 28% of organizations fully leverage their mainframe data, a concerning statistic given its critical role in powering AI models, predictive analytics, and informed decision-making ...

What kind of ROI is your organization seeing on its technology investments? If your answer is "it's complicated," you're not alone. According to a recent study conducted by Apptio ... there is a disconnect between enterprise technology spending and organizations' ability to measure the results ...

In today’s data and AI driven world, enterprises across industries are utilizing AI to invent new business models, reimagine business and achieve efficiency in operations. However, enterprises may face challenges like flawed or biased AI decisions, sensitive data breaches and rising regulatory risks ...

In MEAN TIME TO INSIGHT Episode 12, Shamus McGillicuddy, VP of Research, Network Infrastructure and Operations, at EMA discusses purchasing new network observability solutions.... 

There's an image problem with mobile app security. While it's critical for highly regulated industries like financial services, it is often overlooked in others. This usually comes down to development priorities, which typically fall into three categories: user experience, app performance, and app security. When dealing with finite resources such as time, shifting priorities, and team skill sets, engineering teams often have to prioritize one over the others. Usually, security is the odd man out ...

Image
Guardsquare

IT outages, caused by poor-quality software updates, are no longer rare incidents but rather frequent occurrences, directly impacting over half of US consumers. According to the 2024 Software Failure Sentiment Report from Harness, many now equate these failures to critical public health crises ...

In just a few months, Google will again head to Washington DC and meet with the government for a two-week remedy trial to cement the fate of what happens to Chrome and its search business in the face of ongoing antitrust court case(s). Or, Google may proactively decide to make changes, putting the power in its hands to outline a suitable remedy. Regardless of the outcome, one thing is sure: there will be far more implications for AI than just a shift in Google's Search business ... 

Image
Chrome

In today's fast-paced digital world, Application Performance Monitoring (APM) is crucial for maintaining the health of an organization's digital ecosystem. However, the complexities of modern IT environments, including distributed architectures, hybrid clouds, and dynamic workloads, present significant challenges ... This blog explores the challenges of implementing application performance monitoring (APM) and offers strategies for overcoming them ...

Service disruptions remain a critical concern for IT and business executives, with 88% of respondents saying they believe another major incident will occur in the next 12 months, according to a study from PagerDuty ...

IT infrastructure (on-premises, cloud, or hybrid) is becoming larger and more complex. IT management tools need data to drive better decision making and more process automation to complement manual intervention by IT staff. That is why smart organizations invest in the systems and strategies needed to make their IT infrastructure more resilient in the event of disruption, and why many are turning to application performance monitoring (APM) in conjunction with high availability (HA) clusters ...