-
Notifications
You must be signed in to change notification settings - Fork 267
add Kubernetes footprint calculation #5991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
d47825e
8f81653
e67ea5d
e503a1e
4a29d11
acc199f
e8a34b3
fd11d74
9043e25
509504d
5843b12
b319270
0e1e705
8b77c96
9aaeb0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,60 @@ | ||||||
| --- | ||||||
| title: Kubernetes footprint calculation | ||||||
| description: This page explains how Scaleway calculates the environmental footprint of its Kubernetes clusters in detail. | ||||||
| tags: kubernetes environmental-footprint impact datacentre | ||||||
| dates: | ||||||
| validation: 18/12/25 | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| posted: 30/01/25 | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| --- | ||||||
|
|
||||||
| This page includes the specificities of the environmental footprint calculation for Lubernetes. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ## Calculation aspects | ||||||
|
|
||||||
| A Kubernetes cluster consists of two parts: the control plane and pools, which are made up of node instances. The impact of the nodes is already calculated as part of the instance impact calculation (https://www.scaleway.com/en/docs/environmental-footprint/additional-content/instances-env-footprint/). The purpose of this page is to detail the calculation of the control plane's impact. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| The total estimated impact of Kubernetes control plane is calculated by integrating the: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - **Dedicated manufacturing impact** - Related to the physical servers hosting the kubernetes control plane. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - **Related manufacturing impact** - The impact of the tools used to manage the kubernetes offers: internal control plane, monitoring, and others. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - **Energy usage impact** - The average electricity consumption of servers and their energy efficiency and of the tools used to manage the Kubernetes offers. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ### Ratio per control plane | ||||||
|
|
||||||
| Kubernetes control planes are implemented on internal Kubernetes clusters composed of virtual machines and load balancers. | ||||||
| The cluster's impact is therefore, according to the RCP, the sum of the impacts of the virtual machines and load balancers. | ||||||
| For mutualised offers, the cluster's impact is distributed among the different customers. For the dedicated offers, the entire cluster impact is allocated to the customers. | ||||||
|
|
||||||
| ### Manufacturing impact | ||||||
|
|
||||||
| The calculation of the manufacturing impact of kubernetes is based on: | ||||||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| - The manufacturing impact of [instances](https://www.scaleway.com/en/docs/environmental-footprint/additional-content/instances-env-footprint/) and [load balancers](https://www.scaleway.com/en/docs/environmental-footprint/additional-content/load-balancer-env-footprint/) used to host users' kubernetes control plane | ||||||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - The manufacturing impact of servers used by the Scaleway Kubernetes team to manage the service | ||||||
|
|
||||||
| #### Calculation example | ||||||
|
|
||||||
| For the example below, we consider a dedicated kubernetes control plane made of two instances with a dedicated manufacturing impact of 2gCO2e/hour each and a load balancer with a dedicated manufacturing impact of 3gCO2e/hour. We measure the impact of 100 hours. We make the following calculation: | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ``` | ||||||
| KubernetesDedicatedImpact = (2 * 2 + 3) * 100 = 700 gCO2e | ||||||
| ``` | ||||||
|
|
||||||
| In the example, the dedicated manufacturing impact of a dedicated kubernetes control plane usage for 100 hours is 700 gCo2e. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ### Usage impact | ||||||
|
|
||||||
| The calculation of the usage impact of Kubernetes control plane is based on: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - Impact of electricity consumption of Instances that host the kubernetes conrol plane | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Impact of electricity consumption of infrastructure and service management servers by the Scaleway Kubernetes team to run the Kubernetes service. | ||||||
|
|
||||||
| To calculate the impact of a kwh, we consider the French energy mix and the datacenter's PUE. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| In the example below, they are 0,065gCo2e/wh and 1,16, respectively. Considering a dedicated kubernetes control plane made of two instances with an electrical consumption of 6wh each and a load balancer with an electrical consumption of 5wh. Considering 100 hours of usage, the total usage impact comes down to: | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ```math | ||||||
| UsageImpact = (2 * 6 + 5) * 100 * 0,065 * 1,16 = 128 gCo2e | ||||||
| ``` | ||||||
|
|
||||||
| In the example, the usage impact of a dedicated kubernetes control plane usage for 100 hours is 128 gCo2e. | ||||||
eauvray-github marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.