Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ripta/spectacles
Kubernetes event exporter to stdout
https://github.com/ripta/spectacles
audit controller event-exporter exporter kubernetes logging
Last synced: 28 days ago
JSON representation
Kubernetes event exporter to stdout
- Host: GitHub
- URL: https://github.com/ripta/spectacles
- Owner: ripta
- License: mit
- Created: 2019-06-17T08:15:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T09:41:10.000Z (about 1 month ago)
- Last Synced: 2024-12-20T12:39:04.639Z (about 1 month ago)
- Topics: audit, controller, event-exporter, exporter, kubernetes, logging
- Language: Go
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
spectacles: a Kubernetes event exporter
While attempting to write [myasnik][myasnik], I ran into problems making a
functional controller. Spectacles is a simpler app with some of the same
components (reflected, informer, lister) and setup (go modules, client-go).[myasnik]: https://github.com/ripta/myasnik
# Compiling
```
git clone https://github.com/ripta/spectacles
cd spectacles
make build
```# Running
```
export KUBECONFIG=~/.kube/config # or other path
make run
```# Deploying
spectacles can run in-cluster, but you're on your own in build a docker image
for it. Its service account needs to be able to get events in the cluster, e.g.:```
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: spectacles
rules:
- apiGroups:
- "" # core
- events.k8s.io
resources:
- events
verbs:
- get
- list
- watch
```There is no leader election (yet?), so you'll need to run only one copy.