Junho

lembro bem do dia primeiro de janeiro. virei o ano trabalhando e com uma satisfação enorme no peito. era o presságio do que viria — e veio, só que durou apenas um mês. interrompidos por questões de…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




A quick approach for cost monitoring on Kubernetes

How to get cost insights about the projects running on Kubernetes without introducing any extra components

This article presents an approach to approximate the costs a specific project/team generates on Kubernetes, based on the ratio of resources allocated to them vs. the total resources in the cluster.

One of the results we expected to achieve with this transition was a significant cost reduction. With Kubernetes, all our projects (big and small) would be able to share the same underlying infrastructure and thus leave less room for idle resources.

One cluster per project and one replica per machine vs. A shared cluster where replicas of multiple projects share the same machines

Before the transition to Kubernetes, each team could go to the AWS Cost Explorer and see how much money each of their projects was spending. Naturally, we wanted to maintain that level of visibility.

The challenge with Kubernetes is that, because different pods share a pool of resources, attributing a part of the total cost to a specific project (or team, or environment, …) is not trivial. At the moment, the built-in budgeting tools of most cloud platforms I know (AWS in our case) do not provide a straightforward way to explore these costs either, so we were left with two alternatives:

We briefly considered option (1), but decided to hold off on adopting a solution that would require extra maintenance and/or procurement.

What follows is our implementation of option (2): A low-hanging-fruit approach to cost monitoring on…

Add a comment

Related posts:

How to make a simple website?

If you are interested to build a website by yourself, this article will guide you “How to make a simple website” on your own. As a beginner, The guild would be stick with clear, simple, and easy…

Hillrise Capital Announces Investment in Tidal Finance

Hillrise Ventures today announces an investment in insurance marketplace provider Tidal Finance (‘Tidal’). Hillrise Ventures is the private investment arm of Hillrise Group. We are excited to share…

If Your Cat Was A Black Hole

We know that black holes are formed from stars. But what if your cat turned into one? Now you would ask me, how can a cat turn into black hole when it is nowhere near the size of a star. Hell you…