It changes the directory layout of the ansible playbook to a more "best practices" friendly approach using ansible roles and a real inventory file Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			723 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			723 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Lightweight Kubernetes
 | 
						|
Documentation=https://k3s.io
 | 
						|
After=network-online.target
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=notify
 | 
						|
ExecStartPre=-/sbin/modprobe br_netfilter
 | 
						|
ExecStartPre=-/sbin/modprobe overlay
 | 
						|
ExecStart=/usr/local/bin/k3s agent --server https://{{ controller_ip }}:6443 --token {{ hostvars[groups['controller'][0]]['token'] }} {{ extra_agent_args | default("") }}
 | 
						|
KillMode=process
 | 
						|
Delegate=yes
 | 
						|
# Having non-zero Limit*s causes performance problems due to accounting overhead
 | 
						|
# in the kernel. We recommend using cgroups to do container-local accounting.
 | 
						|
LimitNOFILE=1048576
 | 
						|
LimitNPROC=infinity
 | 
						|
LimitCORE=infinity
 | 
						|
TasksMax=infinity
 | 
						|
TimeoutStartSec=0
 | 
						|
Restart=always
 | 
						|
RestartSec=5s
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |