ceems-api-server

by CEEMS

Helm chartv0.11.4App 0.16.3Apache-2.0Verified publisher

A Helm chart for deploying CEEMS API server

About this chart

ceems-api-server

A Helm chart for deploying CEEMS API server

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

Maintainers

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

Source Code

Description

Installs API server component of the CEEMS, that fetches metadata of pods in a k8s cluster to estimate the energy and emissions usage of workloads.

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-api-server
  • Helm Repository: https://ceems-dev.github.io/helm-charts with chart ceems-api-server

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

See configuration below.

See helm install for command documentation.

Uninstall Helm Chart

helm uninstall -n ceems ceems-api-server

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-api-server

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-api-server

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 (ceemsAPIServer.admissionWebhooks.enabled). This resource has 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 ceems-api-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ceems-api-server 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 chartceems-api-server is pinned at v0.11.4 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