- [Unit]
- Description=Lightweight Kubernetes
- Documentation=https://k3s.io
- After=network-online.target
- [Service]
- Type=exec
- ExecStart=/usr/local/bin/k3s server --tls-san {{ master_ip }} --advertise-address {{ master_ip }} --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
- Restart=always
- RestartSec=5s
- [Install]
- WantedBy=multi-user.target
|