An open API service indexing awesome lists of open source software.

https://github.com/logzio/logzio-k8s-events

An intergration that watches for Kubernetes deployment events and sends them to Logz.io
https://github.com/logzio/logzio-k8s-events

integration

Last synced: 4 months ago
JSON representation

An intergration that watches for Kubernetes deployment events and sends them to Logz.io

Awesome Lists containing this project

README

        

# Logz.io Kubernetes Events

The logzio-k8s-events integration was made to send data about deployment events in the cluster, and how they affect the resources in the cluster.

It uses the Kubernetes informer official SDK to watch for deployment events in the cluster.
The events are getting parsed and enriched using Kubernetes SDK to correlate them with resources that are being effected by the deployment.
They are then sent to Logz.io using Logz.io GoLang SDK.

Currently supported resource kinds are Deployment, Daemonset, Statefulset, ConfigMap, Secret, Service Account, Cluster Role & Cluster Role Binding.

It can be deployed using the [logzio-k8s-events Helm chart](https://github.com/logzio/logzio-helm/tree/master/charts/logzio-k8s-events).

# Tests

Each package has test files that are relevant to each functionality, running tests can be done using the following command:
```
go test .
```

The [tests.yml](https://github.com/logzio/logzio-k8s-events/blob/master/.github/workflows/tests.yml) workflow runs when opening a pull request to validate the tests passes.

# Architecture
![Architecture](./architecture.svg)

## Change log
- **0.0.4**:
- Upgrade `github.com/logzio/logzio-go` to `v1.0.9`
- Upgrade GoLang version to `v1.23.0`
- Upgrade GoLang docker image to `golang:1.23.0-alpine3.20`
- **0.0.3**:
- Upgrade GoLang version to `v1.22.3`
- Upgrade docker image to `alpine:3.20`
- Upgrade GoLang docker image to `golang:1.22.3-alpine3.20`
- **0.0.2**:
- Ignore internal event changes.
- **0.0.1**:
- Initial release.