Ha-cert-manager-for-traefik
The app can be used to backup and replication the acme file across multiple traefik nodes
Flag Name |
Description |
Default Value |
members |
comma separated list of members |
|
httpPort |
Port to be used for connection |
7900 |
httpAddress |
Address to be use for connection |
0.0.0.0 |
traefikCertLocalStore |
path with file name where are stored certificates |
/etc/traefik/acme.json |
consulKey |
Consul key for storage certificates |
traefik/acme.json |
path |
Log file path with name |
/var/log/hacert.log |
logLevel |
Possible level of debugging, DEBUG, WARN, INFO, ERROR |
DEBUG |
appName |
Aplication tag for logging |
traefikCertKVStore |
backupCount |
Count of rotated backup version |
3 |
waitAfterStart |
Waiting to start to do tasks after started in seconds |
5 |
Prometheus metrics
metricsPath |
URL path for surfacing collected metrics |
/metrics |
Grafana
Grafana ID: 15100 https://grafana.com/grafana/dashboards/15100
Usage
From Binary
./traefikCertKVStore -members="192.168.1.10,192.168.1.11"
From container
docker pull ghcr.io/jakubjastrabik/treafikcertkvstore:latest
docker run -p 7900:7900 --name treafikcertkvstore --env-file=.env ghcr.io/jakubjastrabik/treafikcertkvstore
Build from source
git clone https://github.com/jakubjastrabik/treafikCertKVstore.git
go get
GOOS=linux GOARCH=amd64 go build -o traefikCertKVStore