-
Notifications
You must be signed in to change notification settings - Fork 269
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
Open
eauvray-github
wants to merge
17
commits into
main
Choose a base branch
from
int-add-efp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d47825e
add Kubernetes footprint calculation
eauvray-github 8f81653
add kubernetes footprint calculation documentation page
eauvray-github e67ea5d
Merge branch 'main' into int-add-efp
eauvray-github e503a1e
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 4a29d11
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github acc199f
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github e8a34b3
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github fd11d74
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 9043e25
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 509504d
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 5843b12
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github b319270
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 0e1e705
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 8b77c96
Update pages/environmental-footprint/additional-content/kubernetes-en…
eauvray-github 9aaeb0d
Apply suggestions from code review
bene2k1 2eed196
Apply suggestions from code review
bene2k1 0bab22e
docs(efp): add k8s efp to menu
bene2k1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
pages/environmental-footprint/additional-content/kubernetes-env-footprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - **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. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### 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: | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - 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. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 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
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.