23 lines
660 B
Desktop File
23 lines
660 B
Desktop File
# If this is being put on a new machine or OS install ensure you do the following:
|
|
# systemctl --user daemon-reload
|
|
# systemctl --user enable --now cloudflared-k8s.service
|
|
# systemctl --user status cloudflared-k8s.service
|
|
|
|
[Unit]
|
|
Description=Cloudflare Tunnel to K8s API
|
|
After=network-online.target
|
|
Wants=network-online.target systemd-networkd-wait-online.service
|
|
|
|
StartLimitIntervalSec=500
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
PassEnvironment=DISPLAY WAYLAND_DISPLAY DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR
|
|
ExecStart=/usr/bin/cloudflared access tcp --hostname k8s.samoneal.io --url localhost:6443
|
|
Restart=on-failure
|
|
RestartSec=60
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|