k3s.service.j2 532 B

12345678910111213
  1. [Unit]
  2. Description=Lightweight Kubernetes
  3. Documentation=https://k3s.io
  4. After=network-online.target
  5. [Service]
  6. Type=exec
  7. ExecStart=/usr/local/bin/k3s server --tls-san {{ master_ip }} --advertise-address {{ master_ip }} --disable=traefik --disable=servicelb --disable=metrics-server --token={{ k3s_token }} --https-listen-port=6443 --pause-image=registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6 --system-default-registry=registry.cn-hangzhou.aliyuncs.com
  8. Restart=always
  9. RestartSec=5s
  10. [Install]
  11. WantedBy=multi-user.target