k3s_setup/roles/k3s/templates/service-k3s.j2

9 lines
305 B
Django/Jinja

[Unit]
Description=k3s cluster
After=network-online.target
[Service]
Environment=K3S_TOKEN={{k3s_token}}
Environment=K3S_DATASTORE_ENDPOINT=http://node01:2379,http://node02:2379,http://node03:2379
Exec=/usr/local/sbin/k3s server --no-deploy traefik --bind-address {{wg_ip}} --advertise_address {{wg_ip}}