2019-12-18 18:56:13 +00:00
|
|
|
[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
|
2020-02-10 11:43:12 +00:00
|
|
|
ExecStart=/usr/local/sbin/k3s server --no-deploy traefik --bind-address {{wg_ip}} --advertise-address {{wg_ip}}
|