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:
		@@ -184,6 +184,8 @@ aws elb create-load-balancer \
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
All the VMs in this lab will be provisioned using Ubuntu 16.04 mainly because it runs a newish Linux Kernel that has good support for Docker.
 | 
					All the VMs in this lab will be provisioned using Ubuntu 16.04 mainly because it runs a newish Linux Kernel that has good support for Docker.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					All Virtual Machine will be created with the `--no-source-dest-check` flag to enable traffic between foreign subnets to flow. The will enable Pods to communicate with nodes and other Pods via the Service IP. 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Create Instance IAM Policies
 | 
					### Create Instance IAM Policies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -335,6 +337,12 @@ CONTROLLER_0_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${CONTROLLER_0_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${CONTROLLER_0_INSTANCE_ID} \
 | 
					  --resources ${CONTROLLER_0_INSTANCE_ID} \
 | 
				
			||||||
@@ -355,6 +363,12 @@ CONTROLLER_1_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${CONTROLLER_1_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${CONTROLLER_1_INSTANCE_ID} \
 | 
					  --resources ${CONTROLLER_1_INSTANCE_ID} \
 | 
				
			||||||
@@ -375,6 +389,12 @@ CONTROLLER_2_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${CONTROLLER_2_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${CONTROLLER_2_INSTANCE_ID} \
 | 
					  --resources ${CONTROLLER_2_INSTANCE_ID} \
 | 
				
			||||||
@@ -397,6 +417,12 @@ WORKER_0_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${WORKER_0_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${WORKER_0_INSTANCE_ID} \
 | 
					  --resources ${WORKER_0_INSTANCE_ID} \
 | 
				
			||||||
@@ -417,6 +443,12 @@ WORKER_1_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${WORKER_1_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${WORKER_1_INSTANCE_ID} \
 | 
					  --resources ${WORKER_1_INSTANCE_ID} \
 | 
				
			||||||
@@ -437,6 +469,12 @@ WORKER_2_INSTANCE_ID=$(aws ec2 run-instances \
 | 
				
			|||||||
  jq -r '.Instances[].InstanceId')
 | 
					  jq -r '.Instances[].InstanceId')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					aws ec2 modify-instance-attribute \
 | 
				
			||||||
 | 
					  --instance-id ${WORKER_2_INSTANCE_ID} \
 | 
				
			||||||
 | 
					  --no-source-dest-check
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
aws ec2 create-tags \
 | 
					aws ec2 create-tags \
 | 
				
			||||||
  --resources ${WORKER_2_INSTANCE_ID} \
 | 
					  --resources ${WORKER_2_INSTANCE_ID} \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user