mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			572 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			572 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=etcd
 | 
						|
Documentation=https://github.com/etcd-io/etcd
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=notify
 | 
						|
ExecStart=/usr/local/bin/etcd \
 | 
						|
  --name controller \
 | 
						|
  --initial-advertise-peer-urls http://127.0.0.1:2380 \
 | 
						|
  --listen-peer-urls http://127.0.0.1:2380 \
 | 
						|
  --listen-client-urls http://127.0.0.1:2379 \
 | 
						|
  --advertise-client-urls http://127.0.0.1:2379 \
 | 
						|
  --initial-cluster-token etcd-cluster-0 \
 | 
						|
  --initial-cluster controller=http://127.0.0.1:2380 \
 | 
						|
  --initial-cluster-state new \
 | 
						|
  --data-dir=/var/lib/etcd
 | 
						|
Restart=on-failure
 | 
						|
RestartSec=5
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |