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](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
TriggeredScaleUporFailedScheduling - 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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| annotations | object | {} | |
| args | list | [] | |
| containerName | string | "k8s-event-logger" | |
| env | object | {} | A map of environment variables |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "maxrocketinternet/k8s-event-logger" | |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podSecurityContext.allowPrivilegeEscalation | bool | false | |
| podSecurityContext.capabilities.drop[0] | string | "ALL" | |
| podSecurityContext.readOnlyRootFilesystem | bool | true | |
| podSecurityContext.runAsGroup | int | 10001 | |
| podSecurityContext.runAsNonRoot | bool | true | |
| podSecurityContext.runAsUser | int | 10001 | |
| podSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| resources.limits.cpu | string | "100m" | |
| resources.limits.memory | string | "128Mi" | |
| resources.requests.cpu | string | "10m" | |
| resources.requests.memory | string | "128Mi" | |
| securityContext | object | {} | |
| tolerations | list | [] |
Maintainers
| Name | Url | |
|---|---|---|
| max-rocket-internet | https://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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartk8s-event-logger is pinned at v1.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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