mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	add support for aws
This commit is contained in:
		@@ -214,6 +214,10 @@ KUBERNETES_HOSTS=(controller0 controller1 controller2 etcd0 etcd1 etcd2 worker0
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### GCE
 | 
					### GCE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The following command will:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Copy the TLS certificates and keys to each Kubernetes host using the `gcloud compute copy-files` command.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
for host in ${KUBERNETES_HOSTS[*]}; do
 | 
					for host in ${KUBERNETES_HOSTS[*]}; do
 | 
				
			||||||
  gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem ${host}:~/
 | 
					  gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem ${host}:~/
 | 
				
			||||||
@@ -222,6 +226,10 @@ done
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### AWS
 | 
					### AWS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The following command will:
 | 
				
			||||||
 | 
					 * Extract the public IP address for each Kubernetes host
 | 
				
			||||||
 | 
					 * Copy the TLS certificates and keys to each Kubernetes host using `scp`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
for host in ${KUBERNETES_HOSTS[*]}; do
 | 
					for host in ${KUBERNETES_HOSTS[*]}; do
 | 
				
			||||||
  PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \
 | 
					  PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user