k8s-event-logger

by Delivery Hero

Helm chartv1.4.0App 2.7deprecated_GPL-3.0+Verified publisher

This chart runs a pod that simply watches Kubernetes Events and logs them to stdout in JSON to be collected and stored by your logging solution, e.g. [fluentd](https://github.com/helm/charts/tree/master/stable/fluentd) or [fluent-bit](https://github.com/helm/charts/tree/master/stable/fluent-bit). https://github.com/max-rocket-internet/k8s-event-logger Events in Kubernetes log very important information. If are trying to understand what happened in the past then these events show clearly what your Kubernetes cluster was thinking and doing. Some examples: - Pod events like failed probes, crashes, scheduling related information like `TriggeredScaleUp` or `FailedScheduling` - HorizontalPodAutoscaler events like scaling up and down - Deployment events like scaling in and out of ReplicaSets - Ingress events like create and update The problem is that these events are simply API objects in Kubernetes and are only stored for about 1 hour. Without some way of storing these events, debugging a problem in the past very tricky.

About this chart

k8s-event-logger

This chart runs a pod that simply watches Kubernetes Events and logs them to stdout in JSON to be collected and stored by your logging solution, e.g. fluentd or fluent-bit.

https://github.com/max-rocket-internet/k8s-event-logger

Events in Kubernetes log very important information. If are trying to understand what happened in the past then these events show clearly what your Kubernetes cluster was thinking and doing. Some examples:

  • Pod events like failed probes, crashes, scheduling related information like TriggeredScaleUp or FailedScheduling
  • HorizontalPodAutoscaler events like scaling up and down
  • Deployment events like scaling in and out of ReplicaSets
  • Ingress events like create and update

The problem is that these events are simply API objects in Kubernetes and are only stored for about 1 hour. Without some way of storing these events, debugging a problem in the past very tricky.

Homepage: https://github.com/max-rocket-internet/k8s-event-logger

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/k8s-event-logger

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/k8s-event-logger --version 1.4.0

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

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/k8s-event-logger

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/k8s-event-logger --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/k8s-event-logger -f values.yaml

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
annotationsobject{}
argslist[]
containerNamestring"k8s-event-logger"
envobject{}A map of environment variables
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"maxrocketinternet/k8s-event-logger"
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.allowPrivilegeEscalationboolfalse
podSecurityContext.capabilities.drop[0]string"ALL"
podSecurityContext.readOnlyRootFilesystembooltrue
podSecurityContext.runAsGroupint10001
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint10001
podSecurityContext.seccompProfile.typestring"RuntimeDefault"
resources.limits.cpustring"100m"
resources.limits.memorystring"128Mi"
resources.requests.cpustring"10m"
resources.requests.memorystring"128Mi"
securityContextobject{}
tolerationslist[]

Maintainers

NameEmailUrl
max-rocket-internethttps://github.com/max-rocket-internet

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/k8s-event-logger

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/k8s-event-logger

Deploy k8s-event-logger with OpenTenant

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