Quick Start
This guide will have GreenKube up and running in your cluster in under 5 minutes.
Prerequisites
Section titled “Prerequisites”Before you begin, make sure you have:
- ✅ A running Kubernetes cluster (Minikube, EKS, GKE, AKS, etc.)
- ✅ Helm 3 installed (install guide)
- ✅ kubectl configured to access your cluster
- ✅ Prometheus deployed in your cluster (e.g., via kube-prometheus-stack)
- ✅ OpenCost deployed for cost data (optional but recommended)
Installation
Section titled “Installation”-
Add the GreenKube Helm repository
Terminal window helm repo add greenkube https://GreenKubeCloud.github.io/GreenKubehelm repo update -
Install GreenKube
Terminal window helm install greenkube greenkube/greenkube \-n greenkube \--create-namespaceThis deploys GreenKube with:
- The data collector (runs continuously)
- The FastAPI server (REST API)
- The web dashboard (SvelteKit SPA)
- PostgreSQL database (StatefulSet)
- RBAC (ServiceAccount, ClusterRole, ClusterRoleBinding)
-
Wait for pods to be ready
Terminal window kubectl get pods -n greenkube -wYou should see something like:
NAME READY STATUS RESTARTS AGEgreenkube-7b5f8c9d6-x2k4p 1/1 Running 0 30sgreenkube-postgres-0 1/1 Running 0 30s -
Access the dashboard
Terminal window kubectl port-forward svc/greenkube-api 8000:8000 -n greenkubeOpen http://localhost:8000 in your browser.
-
Run your first report
Terminal window # Get the pod nameGREENKUBE_POD=$(kubectl get pods -n greenkube -l app=greenkube -o jsonpath='{.items[0].metadata.name}')# Exec into the podkubectl exec -it $GREENKUBE_POD -n greenkube -- bash# Generate a daily reportgreenkube report --daily# Get optimization recommendationsgreenkube recommend
What You’ll See
Section titled “What You’ll See”After installation, the dashboard provides:
- Dashboard — KPI cards showing total CO₂ emissions, costs, energy consumption, and active pods. Time-series charts and namespace breakdown.
- Metrics — Interactive table with per-pod metrics: energy, cost, CPU, memory, network, disk, storage, and restarts.
- Nodes — Cluster node inventory with CPU/memory capacity, hardware profiles, cloud provider info.
- Recommendations — Actionable suggestions to reduce costs and emissions (zombie pods, rightsizing, autoscaling).
- Settings — Current configuration, API health, version info, database connection details.
Adding an Electricity Maps Token (Optional)
Section titled “Adding an Electricity Maps Token (Optional)”For accurate, region-specific carbon intensity data, add an Electricity Maps API token:
helm upgrade greenkube greenkube/greenkube \ -n greenkube \ --set secrets.electricityMapsToken="YOUR_TOKEN_HERE"Next Steps
Section titled “Next Steps”- 📖 Full Installation Guide — Advanced configuration options
- ⚙️ Configuration Reference — All environment variables and Helm values
- 📊 Dashboard Guide — Learn to use the web interface
- 🔧 CLI Reference — Master the command-line interface