cfg/.config/systemd/user/kubefwd@.service
Knut Ahlers e1ce2ddd33
Add service to port-forward stuff from kubernetes
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-07-24 20:04:09 +02:00

11 lines
269 B
Desktop File

[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