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
- Host: GitHub
- URL: https://github.com/logzio/logzio-k8s-events
- Owner: logzio
- License: apache-2.0
- Created: 2023-09-02T08:15:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T14:57:15.000Z (6 months ago)
- Last Synced: 2025-01-05T08:56:27.222Z (5 months ago)
- Topics: integration
- Language: Go
- Homepage:
- Size: 1.55 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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
## 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.