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)
Try the Demo First (No Cluster Required)
Section titled “Try the Demo First (No Cluster Required)”Want to explore GreenKube without any infrastructure? Start with Demo Mode — it loads 7 days of realistic data for 22 pods across 5 namespaces, with carbon emissions, costs, and recommendations pre-loaded.
The fastest way to try GreenKube. Only Docker is required — no Kubernetes, no Prometheus, no setup.
docker run --rm -p 9000:9000 \ greenkube/greenkube:0.2.3 \ demo --no-browser --port 9000Open http://localhost:9000 in your browser. Press Ctrl+C to stop.
If you have a cluster available, you can run the demo as a temporary pod:
kubectl run greenkube-demo \ --image=greenkube/greenkube:0.2.3 \ --restart=Never \ --command -- greenkube demo --no-browser --port 9000
kubectl wait --for=condition=Ready pod/greenkube-demo --timeout=60skubectl port-forward pod/greenkube-demo 9000:9000Open http://localhost:9000 in your browser.
# Clean up when donekubectl delete pod greenkube-demoInstallation
Section titled “Installation”-
Add the Helm repository and install
Terminal window helm repo add greenkube https://GreenKubeCloud.github.io/GreenKubehelm repo updatehelm install greenkube greenkube/greenkube \-n greenkube \--create-namespaceThis deploys the data collector, REST API, web dashboard, and a PostgreSQL database — all in one command.
-
Wait for pods to be ready
Terminal window kubectl get pods -n greenkube -wYou should see:
NAME READY STATUS RESTARTS AGEgreenkube-7b5f8c9d6-x2k4p 2/2 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.
-
(Optional) Add an Electricity Maps token
For accurate, region-specific carbon data instead of the default 500 gCO₂e/kWh:
Terminal window helm upgrade greenkube greenkube/greenkube \-n greenkube \--set secrets.electricityMapsToken="YOUR_TOKEN_HERE"Get a free token at electricitymaps.com.
-
Run your first report
Terminal window GREENKUBE_POD=$(kubectl get pods -n greenkube \-l app.kubernetes.io/name=greenkube,app.kubernetes.io/component=app \-o jsonpath='{.items[0].metadata.name}')kubectl exec -it $GREENKUBE_POD -n greenkube -- greenkube report --dailykubectl exec -it $GREENKUBE_POD -n greenkube -- greenkube recommend
What You’ll See
Section titled “What You’ll See”- 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 (CPU-based), 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.
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