[Unit] Description=Lightweight Kubernetes Documentation=https://k3s.io After=network-online.target [Service] ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }} KillMode=process Delegate=yes LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Restart=always [Install] WantedBy=multi-user.target