Add service to port-forward stuff from kubernetes

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-07-24 20:04:09 +02:00
parent b2ac615dfb
commit e1ce2ddd33
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -0,0 +1,11 @@
[Unit]
Description=kubectl port-foward as a service
[Service]
EnvironmentFile=%h/.config/kubefwd.service.d/%i.conf
ExecStart=kubectl -n ${NAMESPACE} port-forward ${TARGET} ${TARGET_PORT}:${LOCAL_PORT}
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target