kube-ceems

by CEEMS

Helm chartv1.62.0App 0.16.3Apache-2.0Verified publisher

A Helm chart for deploying CEEMS

About this chart

kube-ceems

A Helm chart for deploying CEEMS

Homepage: https://ceems-dev.github.io/helm-charts/

Maintainers

NameEmailUrl
mahendrapaipuri[email protected]https://github.com/mahendrapaipuri

Source Code

Requirements

RepositoryNameVersion
https://ceems-dev.github.io/helm-chartsceems-api-server0.11.4
https://ceems-dev.github.io/helm-chartsceems-exporter0.9.3
https://ceems-dev.github.io/helm-chartsceems-lb0.9.3
https://grafana.github.io/helm-chartspyroscope2.4.4
https://prometheus-community.github.io/helm-chartskube-prometheus-stack93.11.*

Description

Installs core components of the CEEMS, a collection of Kubernetes manifests, Grafana dashboards, 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/kube-ceems
  • Helm Repository: https://ceems-dev.github.io/helm-charts with chart kube-ceems

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 oci://ghcr.io/ceems-dev/charts/kube-ceems

See configuration below.

See helm install for command documentation.

Dependencies

By default this chart installs additional, dependent charts:

To disable dependencies during installation, see multiple releases below.

See helm dependency for command documentation.

Uninstall Helm Chart

helm uninstall ceems

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

With Helm v3, CRDs created by this chart's dependencies are not updated by default and should be manually updated. Consult also the Helm Documentation on CRDs.

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/kube-ceems

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.

Multiple releases

The same chart can be used to run multiple CEEMS instances in the same cluster if required. This makes sense when one control plane cluster is managing different workload clusters. To achieve this, it is necessary to run only one instance of Admission Webhook of CEEMS API server (ceems-api-server.admissionWebhooks.enabled) and one instance of prometheus-operator (kube-prometheus-stack.prometheusOperator.enabled) from kube-prometheus-stack. These two resources have cluster wide scope and having multiple running instances might have undesired effect.

Values

global:
  imagePullSecrets:
  - name: pullSecret1
  - name: pullSecret2

or

global:
  imagePullSecrets:
  - pullSecret1
  - pullSecret2

Deploy kube-ceems with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-ceems 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-ceems is pinned at v1.62.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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