kube-ephemeral-container-exporter

by containeroo

Helm chartv0.2.3App v0.0.14Verified publisher

Exposes Prometheus metrics for Pods with attached ephemeral containers.

About this chart

Helm Chart Values for kube-ephemeral-container-exporter

This chart deploys kube-ephemeral-container-exporter. Prometheus Operator and Cilium resources are optional so the default installation works on a standard Kubernetes cluster.

Installation

helm repo add containeroo https://charts.containeroo.ch
helm repo update containeroo
helm upgrade --install kube-ephemeral-container-exporter \
  containeroo/kube-ephemeral-container-exporter

Important defaults

KeyDescriptionDefault
namespace.createCreate the configured namespace resource.false
image.repositoryExporter image repository.ghcr.io/containeroo/kube-ephemeral-container-exporter
image.tagExporter image tag. Empty uses the chart app version.""
image.pullPolicyImage pull policy.IfNotPresent
replicasDeployment replica count.1
leaderElection.enabledEnable controller leader election.true

Watch scope

KeyDescriptionDefault
watch.currentNamespaceWatch only the namespace containing the exporter Pod.false
watch.namespacesNamespaces to watch; one Role and RoleBinding is created in each.[]

When either namespace-scoped option is configured, the chart omits the controller ClusterRole and ClusterRoleBinding and creates namespace-scoped controller RBAC. Metrics authentication cluster RBAC remains independently controlled by metrics.rbac.create.

Deployment and pod values

KeyDescriptionDefault
resourcesContainer resource requests and limits.See values.yaml
podAnnotationsPod annotations applied to the deployment.includes kubectl.kubernetes.io/default-container
podLabelsExtra Pod labels.{}
podSecurityContextPod security context.runAsNonRoot: true
securityContextContainer security context.drop all caps, no privilege escalation
startupProbe.enabledEnable startup probe.false
livenessProbe.enabledEnable liveness probe.true
readinessProbe.enabledEnable readiness probe.true
probes.addressOverride the health probe bind address.""
server.enableHTTP2Enable HTTP/2 for the metrics and probe servers.false
envExtra environment variables for the exporter container.[]
extraArgsAdditional CLI arguments appended to the command.[]

Monitoring values

KeyDescriptionDefault
metrics.enabledEnable the metrics endpoint.true
metrics.rbac.createCreate HTTPS metrics authentication cluster RBAC.false
metrics.rbac.nameCustom metrics authentication RBAC name.""
metrics.addressOverride the metrics bind address.""
metrics.secureServe metrics over HTTPS.false
metrics.service.enabledCreate the metrics Service.true
metrics.serviceMonitor.enabledCreate the ServiceMonitor.false
metrics.serviceMonitor.jobLabelService label used as the Prometheus job.app.kubernetes.io/name
metrics.prometheusRule.enabledCreate the PrometheusRule.false
metrics.prometheusRule.namespaceNamespace for the PrometheusRule. Empty uses the release namespace.""
metrics.prometheusRule.exporterDown.enabledAlert when no healthy exporter target is scraped.true
metrics.prometheusRule.longRunning.enabledAlert when an ephemeral container keeps running too long.true
metrics.prometheusRule.longRunning.forDuration before firing the long-running alert.1h

The ServiceMonitor includes a bearer token and TLS configuration only when metrics.secure is enabled. Metrics authentication RBAC is likewise rendered only when metrics, HTTPS, and metrics.rbac.create are all enabled.

RBAC and networking values

KeyDescriptionDefault
clusterRole.createCreate controller cluster RBAC in cluster-wide mode.true
clusterRole.nameCustom controller ClusterRole name.""
role.createExplicitly create namespace-scoped controller RBAC.false
role.nameCustom controller Role name.""
serviceAccount.createCreate the ServiceAccount.true
serviceAccount.annotationsServiceAccount annotations.{}
ciliumNetworkPolicy.enabledRender the CiliumNetworkPolicy resources.false
ciliumNetworkPolicy.prometheusNamespaceNamespace of the Prometheus pods allowed to scrape.observability

Misc values

KeyDescriptionDefault
imagePullSecretsImage pull secrets for private registries.[]
nameOverrideShort name override.""
fullnameOverrideFull release name override.""
extraObjectsExtra Kubernetes objects rendered with the chart.[]

Deploy kube-ephemeral-container-exporter with OpenTenant

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

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-ephemeral-container-exporter is pinned at v0.2.3 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