Brussels / 4 & 5 February 2023


Carbon Intensity Aware Scheduling in Kubernetes

Currently, the energy consumption metrics are only available at node levels. There is no way to obtain container-level energy consumption. Autoscalers and schedulers really need pod-level metrics data in order to obtain energy savings from resizing or migrating containers.

The presentation introduces Kubernetes-based Efficient Power Level Exporter (Kepler) and its integration with Kubernetes. By leveraging eBPF programs, Kepler probes per container energy consumption related system counters and exports them as metrics. These metrics help end users observe their containers’ energy consumption and allow cluster admins to make intelligent decisions on achieving energy conservation goals. The presentation shows that Kepler can be easily integrated into Prometheus and render time series metrics into Grafana.

At last, we will demonstrate sustainable management of clusters by leveraging Cloud-native patterns, Observability and Kubernetes features like node selector, node labels, node name, affinity and anti-affinity to achieve carbon intensity aware placement of workloads in a Kubernetes cluster.


Parul Singh
Photo of Kaiyi Liu Kaiyi Liu