https://github.com/jsturtevant/trigger-logger
https://github.com/jsturtevant/trigger-logger
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsturtevant/trigger-logger
- Owner: jsturtevant
- License: mit
- Created: 2022-03-02T01:05:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T14:32:52.000Z (about 3 years ago)
- Last Synced: 2025-02-11T11:42:16.092Z (3 months ago)
- Language: C#
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Trigger logger
This is a small application that listens to kubernetes events and starts a WPR listener when a namespace is created. It could be extended for any kubernetes events and even beyond kubernetes such as when a process is started.
This leverages Hostprocess container feature in kubernetes to run commands directly on the host.
## Hostpocess container
Build the container:
```
docker build -t jsturtevant/trigger-logger:latest .
```Deploy:
```
kubectl apply -f trigger-logger.yaml
```## Running locally
```
dotnet run
```## Publishing as single file
Configured to produce a [single binary(https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file#publish-a-single-file-app---cli)]. To build run:```
dotnet publish -r win-x64
```