Slide 1

Slide 1 text

Building IT Green A Journey of Platforms, Data and Developer Empowerment T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024

Slide 2

Slide 2 text

Politics: 1.5 ºC Climate change Ecological disasters 2 T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024

Slide 3

Slide 3 text

We need to shift traffic – on a massive scale – to a strong rail network, in order to achieve our climate targets T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 3 FOR THE CLIMATE. Strong Rail is critical to achieving the climate targets set by the German government and the two-degree target set globally. As such, Strong Rail is a source of hope in the fight against climate change. We must achieve those targets so that future generations can come of age in a livable world.

Slide 4

Slide 4 text

Global electricity demand from data centres, AI, and cryptocurrencies, 2019-2026 T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 4 0 200 400 600 800 1000 1200 2019 2020 2021 2022 2023 2024 2025 2026 Base case Low case High case the worst scenario: equivalent adding the electricity demand of Germany the best scenario: equivalent adding the electricity demand of Sweden Source: IEA, 2024

Slide 5

Slide 5 text

As part of our IT strategy work, we* asked ourselves: For which topics do we have to take a clear position and bear responsibility? Especially in the role of a publicly owned association? >16 companies that are regarded as one company by the customer. CEOs / CIOs Grassroots movement Green Digitalisation ... and founded the Group-wide Green Digitalisation initiative. Back in 2021/22, together with 16 DB CIOs, we defined 'Green IT' as a relevant topic T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 5

Slide 6

Slide 6 text

Can we measure our cloud footprint? T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 6 Assignment to Application (Tag Support) Granularity Actuality Energy use Emissions before compensation

Slide 7

Slide 7 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 7 Copyright © 2024 BBC

Slide 8

Slide 8 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 Source: Fischer, M. et al. (2023). The Concept of Sustainable Development. In: Sustainable Business. SpringerBriefs in Business. Springer, Cham. https://doi.org/10.1007/978-3-031-25397-3_2

Slide 9

Slide 9 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 9 Developers.

Slide 10

Slide 10 text

build IT: Deutsche Bahn‘s technology platforms T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 10

Slide 11

Slide 11 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 11 Kubernetes.

Slide 12

Slide 12 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 12 Scaling 70% is the average CPU utilization of our shared clusters only 15% of the CPU are effectively used by the applications

Slide 13

Slide 13 text

Once it runs, no one cares T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 13 Setting up a Vertical Pod Autoscaler (VPA) apiVersion: autoscaling.k8s.io/v1 kind: VerticalPodAutoscaler metadata: name: my-vpa spec: targetRef: apiVersion: apps/v1 kind: Deployment name: my-application updatePolicy: updateMode: Auto Defining requests & limits apiVersion: apps/v1 kind: Deployment metadata: name: my-application spec: template: spec: containers: - name: my-container image: my-container-image resources: requests: memory: "512Mi" cpu: "250m" limits: memory: "1Gi" cpu: "500m" Out with expensive guesswork VPA ftw!

Slide 14

Slide 14 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 14 Scheduling

Slide 15

Slide 15 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 kubectl annotate deployment example 'downscaler/uptime=Mon-Fri 09:00-17:00 Europe/Paris'

Slide 16

Slide 16 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 16 Visibility. Information.

Slide 17

Slide 17 text

Energy and CO2 -emissions in near-real-time Kepler (Kubernetes-based Efficient Power Level Exporter) and Grafana T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 17 Energy Mix Hourly mix and CO2 intensity per country eBPF energy stats eBPF tracepoints and perf counters Cluster Metrics Prometheus metrics, exported from Kubernetes Clusters Control Optimize DB Systel or DB Partner Power estimation Through kepler online learning model server Grafana Annotations Alerts Software Artefacts develops deploys watches Developer Observe Dashboard Platform user

Slide 18

Slide 18 text

Enterprise readiness? Security first! T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 18

Slide 19

Slide 19 text

Enterprise readiness? Prepare for scale! T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 19

Slide 20

Slide 20 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 20 Data.

Slide 21

Slide 21 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 21

Slide 22

Slide 22 text

Observability Green Dashboard T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 22

Slide 23

Slide 23 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 23

Slide 24

Slide 24 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 24 build IT Green Enterprise Architecture Management Prototypes provided by

Slide 25

Slide 25 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 25 Start.

Slide 26

Slide 26 text

T-Resort | DB Systel GmbH | Dr. Gualter Barbas Baptista | | KubeCon Paris | Mar 21st 2024 26 Empower.

Slide 27

Slide 27 text

Gualter Baptista Lead Consultant Platform Strategy and Enablement [email protected] Let‘s stick together! Felix Becker Senior Manager Internal Developer Platforms [email protected] Christian Berger Product Owner Developer Experience Platform [email protected] Bastien Grasnick DevOps Engineer Kubernetes Platforms [email protected]