Charmed-Kubernetes/kubernetes-master/templates/cdk.master.auth-webhook.ser...

26 lines
631 B
SYSTEMD

[Unit]
Description=CDK master auth webhook
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
WorkingDirectory={{ root_dir }}
ExecStart={{ charm_dir }}/../.venv/bin/gunicorn \
--bind {{ host }}:{{ port }} \
--capture-output \
--certfile /root/cdk/server.crt \
--disable-redirect-access-to-syslog \
--error-logfile auth-webhook.log \
--keyfile /root/cdk/server.key \
--log-level debug \
--pid {{ pidfile }} \
--workers {{ num_workers }} \
--worker-class aiohttp.worker.GunicornWebWorker \
auth-webhook:app
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target