Add service to port-forward stuff from kubernetes
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b2ac615dfb
commit
e1ce2ddd33
1 changed files with 11 additions and 0 deletions
11
.config/systemd/user/kubefwd@.service
Normal file
11
.config/systemd/user/kubefwd@.service
Normal 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
|
Loading…
Reference in a new issue