Kubernetes (K8s) Deployment & Namespace Attribution
Deploying Aegis on Kubernetes addresses a core challenge in containerized architectures: how can you determine which application is consuming what share of energy when dozens of workloads share the same node pool?
Through the native integration of Kepler (CNCF) and the official Aegis Helm Chart, you can track real-time power draw in Watts and carbon impact in gCO2e broken down by Namespace (e.g. production, staging, data-pipeline).
ποΈ Kubernetes Architecture Overview
[ Kubernetes Cluster ]ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ [ Namespace: production ] [ Namespace: staging ] ββ βββββββββββββββββββββββββ βββββββββββββββββββββββββββ β Web & Microservices β β Staging / CI Runners βββ βββββββββββββ¬ββββββββββββ βββββββββββββ¬ββββββββββββββ β β ββ βΌ βΌ ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β Kepler eBPF Probe (K8s DaemonSet) β ββ β Attributes CPU cycles & Joules to each cgroup β ββ ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββ ββ β ββ βΌ ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β Aegis Node Agent (DaemonSet) β ββ β Relays telemetry to Centralized Cockpit via mTLS β ββ ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββ ββ β ββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββ β (HTTPS / mTLS) βΌ [ Centralized Aegis Cockpit: ESG Reporting ] - Namespace 'production' : 142 W (68% of total footprint) - Namespace 'staging' : 38 W (18% of total footprint)π Method 1: 1-Click Script Deployment (Recommended)
On your management machine with kubectl configured:
curl -sSL https://aegis.aivo.fr/install.sh | bash -s -- --profile k8sThe script verifies kubectl and helm, configures the chart, and deploys the Kepler DaemonSet and the Ingress gateway into the aegis-system namespace.
π οΈ Method 2: Manual Helm Deployment
1. Clone or add the Helm Chart
From your cloned repository:
helm upgrade --install aegis ./deploy/kubernetes/helm/aegis \ --namespace aegis-system \ --create-namespaceOr add the official Helm repository:
helm repo add aivo https://charts.aivo.frhelm repo update2. Configure your custom values file (values.yaml)
Create an aegis-k8s-values.yaml file to configure namespace attribution:
# =============================================================================# AEGIS KUBERNETES CONFIGURATION β NAMESPACE ATTRIBUTION# =============================================================================identity: tenantId: "00000000-0000-0000-0000-000000000001" clusterName: "k8s-production-eu-west" controlPlaneUrl: "https://aegis.your-company.com" enrollToken: "aegis_tok_live_your_token"
# 1. NAMESPACE ENERGY ATTRIBUTION (KEPLER eBPF)energy: enabled: true kepler: installDaemonSet: true # Deploys Kepler eBPF probe onto every node scrapeInterval: "5s"
# List of namespaces to monitor and allocate namespaces: - name: "production" slaThresholdWatts: 150.0 - name: "staging" slaThresholdWatts: 50.0 - name: "monitoring" slaThresholdWatts: 30.0
# 2. CLUSTER INGRESS & EGRESS ZERO-TRUST SECURITYsecurity: ingressWaf: enabled: true mode: "block" # "block" to mitigate OWASP exploits, "monitor_only" for audit egressCoreDns: enabled: true sinkholeC2: true3. Apply the configuration
helm upgrade --install aegis aivo/aegis -f aegis-k8s-values.yaml -n aegis-system --create-namespaceβ‘ How Namespace Attribution Works
In a multi-tenant cluster, a physical 64-core node runs pods originating from multiple distinct namespaces simultaneously.
- eBPF Hardware Performance Counter Tracing :
The Kepler probe injects eBPF programs into the Linux kernel of each worker node, tracking executed instructions per container control group (
cgroup). - Proportional Power Allocation :
If the physical host is drawing 180 Watts (measured directly via RAPL) and pods in namespace
productionconsume 60% of CPU cycles, Kepler allocates precisely180 x 0.60 = 108 Wattsto theproductionnamespace. - Real-Time Carbon Conversion : Aegis combines these Watts with live grid carbon intensity to determine carbon emissions in grams of CO2e per hour: $$\text{gCO2e} = \text{Power (kW)} \times \text{Datacenter PUE} \times \text{Grid Emission Factor (gCO2e/kWh)}$$
π Cockpit Visualization
Once the Helm chart is deployed:
- The configured Namespaces automatically appear under the Aegis Green section of the Cockpit.
- A stacked live chart visualizes real-time distribution:
- π’
production: 112.5 W (Compliant) - π‘
staging: 45.0 W (Exceeding voluntary sobriety threshold)
- π’
- Generate and export official EFRAG VS audit certificates by project for corporate ESG and CSRD filings.