{"id":15960911,"url":"https://github.com/nikimanoledaki/gitops-energy-usage-notes","last_synced_at":"2026-01-21T10:36:48.458Z","repository":{"id":60190661,"uuid":"534552446","full_name":"nikimanoledaki/gitops-energy-usage-notes","owner":"nikimanoledaki","description":"Environmental Sustainability x Cloud-Native: How to measure the energy consumption of cloud-native processes","archived":false,"fork":false,"pushed_at":"2022-12-02T13:37:14.000Z","size":9189,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T15:52:11.340Z","etag":null,"topics":["energy","flux","gitops","kepler","kubernetes","liquid-metal","sustainability"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikimanoledaki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-09T07:58:54.000Z","updated_at":"2022-12-14T14:38:32.000Z","dependencies_parsed_at":"2023-01-22T14:31:07.804Z","dependency_job_id":null,"html_url":"https://github.com/nikimanoledaki/gitops-energy-usage-notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikimanoledaki/gitops-energy-usage-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikimanoledaki%2Fgitops-energy-usage-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikimanoledaki%2Fgitops-energy-usage-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikimanoledaki%2Fgitops-energy-usage-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikimanoledaki%2Fgitops-energy-usage-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikimanoledaki","download_url":"https://codeload.github.com/nikimanoledaki/gitops-energy-usage-notes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikimanoledaki%2Fgitops-energy-usage-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["energy","flux","gitops","kepler","kubernetes","liquid-metal","sustainability"],"created_at":"2024-10-07T15:22:34.676Z","updated_at":"2026-01-21T10:36:48.438Z","avatar_url":"https://github.com/nikimanoledaki.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Energy-efficient Kubernetes\n\nThis project aims to measure and compare the energy consumption of snowflake clusters versus that of Flux-based GitOps clusters.\n\nAnother aim is to create a reference architecture for measuring the energy consumption of cloud-native processes using cloud-native tools.\n\nThe focus here is on energy usage rather than, for example, [marginal emissions estimates](https://www.electricitymaps.com/blog/marginal-emissions-what-they-are-and-when-to-use-them). That being said, energy metrics could be used to deduce carbon emissions.\n\nThis project could be used as the base model for conducting Life Cycle Assessment (LCAs) of any cloud-native software that runs on a Pod.\n\n---\n\n## [Update] The latest version of this project can be found here: https://github.com/nikimanoledaki/sustainability-journey-with-gitops\n\n---\n\n## Resources\n\n- [Flux](https://fluxcd.io/)\n- [Kepler](https://github.com/sustainable-computing-io/kepler)\n- [Flintlock for microVMs](https://github.com/weaveworks-liquidmetal/flintlock)\n- [Liquid Metal](https://github.com/weaveworks-liquidmetal)\n- [CAPMVM](https://github.com/weaveworks-liquidmetal/cluster-api-provider-microvm)\n\n## Get Started with Local Development\n\n### OS\n\n#### Linux\nFor Linux users, create a cluster directly [with minikube](#start-a-kubernetes-cluster-with-minikube).\n\n#### MacOS\nFor MacOS user, the dependencies are:\n- Virtualbox - `brew install --cask virtualbox`\n- Vagrant - `brew install --cask vagrant`\n\nThen, use [this Vagrantfile](Vagrantfile), and spin up a microVM with [Flintlock](https://github.com/weaveworks-liquidmetal/flintlock):\n\n```\nvagrant up\nvagrant ssh\n```\n\nNote: The Vagrantfile allocates 8GB for the microVM. The microVM itself is very lightweight but the cluster that will be allocated 6GB. Ensure you have enough RAM.\n\n### Start a Kubernetes cluster with minikube\n\nFirst, create a minikube cluster:\n```bash\nminikube start --container-runtime=containerd --memory=6g --bootstrapper=kubeadm --extra-config=kubelet.authentication-token-webhook=true --extra-config=kubelet.authorization-mode=Webhook --extra-config=scheduler.bind-address=0.0.0.0 --extra-config=controller-manager.bind-address=0.0.0.0\nminikube addons disable metrics-server\n```\n\nYou will need to install kube-prometheus and kepler on your cluster.\n\nTo do this in a GitOps way, [bootstrap Flux](https://fluxcd.io/flux/get-started/) on your cluster.\n\nThen, copy the Flux manifests for [kube-prometheus](clusters/kube-prometheus.yaml) and [kepler](clusters/kepler) to your config repo. Flux will automatically reconcile these for you.\n\n## Get Started in a Cloud Environment\n\n### Example: Use Equinix for the Baremetal Host\n[Liquid Metal](https://github.com/weaveworks-liquidmetal) can be used to create microVMs on any baremetal machine. \n\nFollow [thse instructions](https://github.com/weaveworks-liquidmetal/getting-started/blob/main/docs/intro.md#terraform-an-environment-on-equinix) for how to use Equinix as a host baremetal machine.\n\nUse [this Terraform manifest](TODO), which contains the necessary configuration to be used as a host for [Kepler](https://github.com/sustainable-computing-io/kepler).\n\nSet up a Kubernetes management cluster locally with CAPI. Then, set up more clusters hosted on microVMs with [CAPMVM](https://github.com/weaveworks-liquidmetal/getting-started/blob/main/docs/create.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikimanoledaki%2Fgitops-energy-usage-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikimanoledaki%2Fgitops-energy-usage-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikimanoledaki%2Fgitops-energy-usage-notes/lists"}