You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- minor best-practices/linting (E.g. using select{} instead of a ifinite loop with sleep, using log.Print vs fmt.Print, formatted the imports, etc.)
- minor readme changes (linting for links and header sizes, removal/change for dead link(s), and addition of some other log collectors like Promtail and Logstash)
- bump go to 1.20 to pull in some security fixes
- bump k8s.io deps to v0.24.15 (note that this version is about to become non-maintained, but still is for now)
This tool 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/fluent/fluentd-kubernetes-daemonset) or [fluent-bit](https://fluentbit.io/). Other tools exist for persisting Kubernetes Events, such as Sysdig, Datadog or Google's [event-exporter](https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/event-exporter) but this tool is open and will work with any logging solution.
5
+
This tool 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/fluent/fluentd-kubernetes-daemonset), [fluent-bit](https://fluentbit.io/), [Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-kubernetes.html), or [Promtail](https://grafana.com/docs/loki/latest/clients/promtail/). Other tools exist for persisting Kubernetes Events, such as Sysdig, Datadog, or Google's [event-exporter](https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/event-exporter) but this tool is open and will work with any logging solution.
6
6
7
-
###Why?
7
+
## Why?
8
8
9
9
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:
10
10
@@ -17,7 +17,7 @@ The problem is that these events are simply API objects in Kubernetes and are on
17
17
18
18
Example of events:
19
19
20
-
```
20
+
```text
21
21
39m Normal UpdatedLoadBalancer Service Updated load balancer with new hosts
22
22
40m Normal SuccessfulDelete DaemonSet Deleted pod: ingress02-nginx-ingress-controller-vqqjp
23
23
41m Normal ScaleDown Node node removed by cluster autoscaler
@@ -30,40 +30,46 @@ Example of events:
30
30
58m Normal CREATE ConfigMap ConfigMap default/ingress02-nginx-ingress-controller
31
31
```
32
32
33
-
###Installation
33
+
## Installation
34
34
35
35
Use the [Helm](https://helm.sh/) chart from this repo:
36
36
37
-
```
37
+
```sh
38
38
helm install chart/
39
39
```
40
40
41
41
Or use the chart from [deliveryhero/helm-charts/stable/k8s-event-logger](https://github.com/deliveryhero/helm-charts/tree/master/stable/k8s-event-logger):
Or use the docker image [maxrocketinternet/k8s-event-logger](https://hub.docker.com/r/maxrocketinternet/k8s-event-logger)
48
+
Or use the pre-built image [maxrocketinternet/k8s-event-logger][pre-built image]
49
49
50
-
####Building a container image
50
+
### Building a container image
51
51
52
-
If you're unable to use the [prebuilt][image] docker image, you can build it yourself:
52
+
If you're unable to use the [pre-built image], you can build it yourself:
53
53
54
54
```sh
55
-
make IMG=maxrocketinternet/k8s-event-logger TAG=latest
55
+
make all IMG=<your-container-registry>/k8s-event-logger TAG=latest
56
56
```
57
57
58
-
This uses `docker buildx` to create a [multi-platform image][]. To set up your build host system to be able to build these images, see [this guide][qemu-binfmt].
58
+
This uses `docker buildx` to create a [multi-platform image]. To set up your build host system to be able to build these images, see [this guide][multi-platform image] or `make all` and review the Makefile for what it does.
Copy file name to clipboardExpand all lines: chart/README.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# k8s-event-logger
2
2
3
-
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).
3
+
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/fluent/fluentd-kubernetes-daemonset), [fluent-bit](https://fluentbit.io/), [Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-kubernetes.html), or [Promtail](https://grafana.com/docs/loki/latest/clients/promtail/). Other tools exist for persisting Kubernetes Events, such as Sysdig, Datadog, or Google's [event-exporter](https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/event-exporter) but this tool is open and will work with any logging solution.
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:
8
8
@@ -15,22 +15,22 @@ The problem is that these events are simply API objects in Kubernetes and are on
15
15
16
16
## Prerequisites
17
17
18
-
- Kubernetes 1.8+
18
+
- Kubernetes 1.23+
19
19
20
20
## Installing the Chart
21
21
22
22
To install the chart with the release name `my-release` and default configuration:
@@ -56,6 +56,6 @@ The following table lists the configurable parameters for this chart and their d
56
56
57
57
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a YAML file containing the values for the above parameters:
0 commit comments