many things
This commit is contained in:
		
							parent
							
								
									18a08d623b
								
							
						
					
					
						commit
						a7fad6c9c6
					
				
					 43 changed files with 1246 additions and 54 deletions
				
			
		
							
								
								
									
										19
									
								
								10-pre-k8s/units/k3s-agent-install.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								10-pre-k8s/units/k3s-agent-install.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| [Unit] | ||||
| Description=Run K3s agent script | ||||
| Wants=network-online.target | ||||
| After=network-online.target | ||||
| ConditionPathExists=/opt/k3s-agent-install.sh | ||||
| ConditionPathExists=/var/.k3s-selinux-installed | ||||
| ConditionPathExists=!/opt/bin/k3s | ||||
| 
 | ||||
| [Service] | ||||
| Type=oneshot | ||||
| TimeoutStartSec=0 | ||||
| RemainAfterExit=no | ||||
| KillMode=process | ||||
| Environment="K3S_TOKEN=${k3s_token}" | ||||
| Environment="K3S_URL=https://kubemaster0.lab.cowley.tech:6443" | ||||
| ExecStart=/usr/bin/sh -c "/opt/k3s-agent-install.sh" | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Chris Cowley
						Chris Cowley