Skip to main content

k8s-event-logger

Wrapper around the upstream k8s-event-logger Helm chart (v1.1.8). Watches the Kubernetes API for Events and writes them to its own stdout as structured log lines, so they can be picked up by whichever log stack the cluster runs.

Why it's in KubeAid

Kubernetes Events (kubectl get events) are ephemeral and namespaced by default - once they expire from etcd they're gone. This chart turns them into durable, centrally-searchable log lines by shipping them through the cluster's log pipeline (Graylog, OpenObserve, or OpenSearch) alongside application logs.

Key values / KubeAid-specific configuration

ValueDescriptionDefault
networkpoliciesEnable this chart's NetworkPolicy resourcesfalse
k8s-event-logger.env.KUBERNETES_API_URLAPI server URL the logger watcheshttps://kubernetes.default.svc

All other configuration is forwarded to the upstream chart under the k8s-event-logger key; see the vendored chart README.

Operational notes

  • When networkpolicies: true, a Calico NetworkPolicy (templates/netpol-k8s-event-logger.yaml) allows egress to nodes labelled kubernetes.io/role == 'master' on port 443, so the logger can reach the apiserver even when a default-deny egress policy is in place.