Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryopsida/k8s-wireguard-mgr
A tool for managing wireguard resources in kubernetes
https://github.com/bryopsida/k8s-wireguard-mgr
Last synced: 27 days ago
JSON representation
A tool for managing wireguard resources in kubernetes
- Host: GitHub
- URL: https://github.com/bryopsida/k8s-wireguard-mgr
- Owner: bryopsida
- License: unlicense
- Created: 2024-02-27T22:56:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T07:12:33.000Z (about 2 months ago)
- Last Synced: 2024-09-12T17:14:49.089Z (about 2 months ago)
- Language: Go
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes Wireguard Manager
## What is this?
This is a CLI tool intended to be run inside of a kubernetes job that can manage wireguard configurations held inside of kubernetes objects.
It's initial use case is to generate a wireguard server private key as a part of a hook for a helm chart install.## Why not just use bash and kubectl?
1. I prefer to avoid bash once conditionals start coming into play
2. By using the wireguard library directly and the kubernetes API directly, the key can be generated without having to do any gymnastics keeping it out of CLI args that would show up on the node process table.
3. It can be re-used/expanded to manage kubernetes resources that hold wireguard objects to manage a VPN.## Environment variables
| Name | Description |
| ----------------------------- | ---------------------------- |
| K8S_WG_MGR_SERVER_SECRET_NAME | Name of the secret to create |