kubernetes-event-exporter

by [riftbit]

Helm chartv1.1.15App 0.10.0Verified publisher

This tool allows exporting the often missed Kubernetes events to various outputs so that they can be used for observability or alerting purposes.

About this chart

Kubernetes Event Exporter

Kubernetes Event Exporter allows exporting the often missed Kubernetes events to various outputs so that they can be used for observability or alerting purposes.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/kubernetes-event-exporter

Introduction

This chart bootstraps a Kubernetes Event Exporter deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/kubernetes-event-exporter

These commands deploy Kubernetes Event Exporter on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list or helm ls --all-namespaces

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionValue
nameOverrideString to partially override kubernetes-event-exporter.fullname include (will maintain the release name)""
fullnameOverrideString to fully override kubernetes-event-exporter.fullname template""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template)[]

Kubernetes Event Exporter parameters

NameDescriptionValue
image.registryContainer image registrydocker.io
image.repositoryContainer image namebitnami/kubernetes-event-exporter
image.tagContainer image tag0.10.0-debian-10-r88
image.pullPolicyContainer image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
hostAliasesAdd deployment host aliases[]
config.logLevelVerbosity of the logs (options: fatal, error, warn, info or debug)debug
config.logFormatHow the logs are formatted. Allowed values: pretty or jsonpretty
config.receiversArray containing event receivers[]
config.route.routesArray containing event route configuration[]
rbac.createCreate the RBAC roles for API accessibilitytrue
serviceAccount.createCreate a serviceAccount for the podtrue
serviceAccount.nameUse the serviceAccount with the specified name""
podAnnotationsPod annotations{}
podSecurityContext.enabledEnable security contexttrue
podSecurityContext.fsGroupGroup ID for the container1001
containerSecurityContext.enabledEnable container security contexttrue
containerSecurityContext.capabilities.addAdd capabilities for the securityContext[]
containerSecurityContext.capabilities.dropDrop capabilities for the securityContext[]
containerSecurityContext.readOnlyRootFilesystemAllows the pod to mount the RootFS as ReadOnly onlytrue
containerSecurityContext.runAsNonRootIf the pod should run as a non root container.true
containerSecurityContext.runAsUserDefine the uid with which the pod will run1001
resources.limitsSpecify resource limits which the container is not allowed to succeed.{}
resources.requestsSpecify resource requests which the container needs to spawn.{}
nodeSelectorNode labels for pod assignment{}
priorityClassNameSet Priority Class Name to allow priority control over other pods""
tolerationsTolerations for pod assignment[]
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
extraEnvVarsArray containing extra env vars to be added to all containers[]
extraEnvVarsConfigMapConfigMap containing extra env vars to be added to all containers""
extraEnvVarsSecretSecret containing extra env vars to be added to all containers""
extraVolumeMountsArray to add extra mounts (normally used with extraVolumes)[]
extraVolumesArray to add extra volumes[]
initContainersAttach additional init containers to pods[]

Configuration and installation details

Rolling vs Immutable tags

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

Use a different version

To modify the application version used in this chart, specify a different version of the image using the image.tag parameter and/or a different repository using the image.repository parameter. Refer to the chart documentation for more information on these parameters and how to use them with images from a private registry.

Set Pod affinity

This chart allows you to set custom Pod affinity using the affinity parameter. Find more information about Pod's affinity in the Kubernetes documentation.

As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset, podAntiAffinityPreset, or nodeAffinityPreset parameters.

Troubleshooting

Find more information about how to deal with common errors related to Bitnami’s Helm charts in this troubleshooting guide.

Deploy kubernetes-event-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubernetes-event-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 chartkubernetes-event-exporter is pinned at v1.1.15 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