ceems-exporter
by CEEMS
A Helm chart for deploying CEEMS Exporter
About this chart
ceems-exporter
A Helm chart for deploying CEEMS Exporter
Homepage: https://ceems-dev.github.io/helm-charts/
Maintainers
| Name | Url | |
|---|---|---|
| mahendrapaipuri | [email protected] | https://github.com/mahendrapaipuri |
Source Code
Description
Installs Prometheus exporter component of the CEEMS, a collection of Kubernetes manifests, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster energy and emissions monitoring with Prometheus and Grafana.
Prerequisites
- Kubernetes 1.19+
- Helm 3+
Usage
The chart is distributed as an OCI Artifact as well as via a traditional Helm Repository.
- OCI Artifact:
oci://ghcr.io/ceems-dev/charts/ceems-exporter - Helm Repository:
https://ceems-dev.github.io/helm-chartswith chartceems-exporter
The installation instructions use the OCI registry. Refer to the helm repo
command documentation for information on installing charts via the traditional repository.
Install Helm Chart
helm install -n ceems --create-namespace ceems-exporter oci://ghcr.io/ceems-dev/charts/ceems-exporter
See configuration below.
See helm install for command documentation.
Uninstall Helm Chart
helm uninstall -n ceems ceems-exporter
This removes all the Kubernetes components associated with the chart and deletes the release.
See helm uninstall for command documentation.
Upgrading Chart
helm upgrade -n ceems ceems-exporter
See helm upgrade for command documentation.
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments:
helm show values oci://ghcr.io/ceems-dev/charts/ceems-exporter
You may also consult chart's Values for detailed description of all values.
Values files in the ci folder can be a good starting point for setting up production deployments with authentication. Each file shows a different scenario with detailed comments are provided in the files.
kube-rbac-proxy
You can enable ceems-exporter endpoint protection using kube-rbac-proxy. By setting
kubeRBACProxy.enabled: true, this chart will deploy a RBAC proxy container protecting the
ceems-exporter endpoint. To authorize access, authenticate your requests
(via a ServiceAccount for example) with a ClusterRole attached such as:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ceems-exporter-read
rules:
- apiGroups: [ "" ]
resources: ["services/ceems-ceems-exporter"]
verbs:
- get
See kube-rbac-proxy examples for more details.
Multiple releases
The same chart can be used to run multiple CEEMS exporter instances in the same cluster if required. This makes sense when one control plane cluster is managing different workload clusters.
Values
global:
imagePullSecrets:
- name: pullSecret1
- name: pullSecret2
or
global:
imagePullSecrets:
- pullSecret1
- pullSecret2
Deploy ceems-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ceems-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartceems-exporter is pinned at v0.9.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply