diff --git a/docs/01-infrastructure-aws.md b/docs/01-infrastructure-aws.md index 92b0638..787ffd1 100644 --- a/docs/01-infrastructure-aws.md +++ b/docs/01-infrastructure-aws.md @@ -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 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 ``` @@ -335,6 +337,12 @@ CONTROLLER_0_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${CONTROLLER_0_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${CONTROLLER_0_INSTANCE_ID} \ @@ -355,6 +363,12 @@ CONTROLLER_1_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${CONTROLLER_1_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${CONTROLLER_1_INSTANCE_ID} \ @@ -375,6 +389,12 @@ CONTROLLER_2_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${CONTROLLER_2_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${CONTROLLER_2_INSTANCE_ID} \ @@ -397,6 +417,12 @@ WORKER_0_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${WORKER_0_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${WORKER_0_INSTANCE_ID} \ @@ -417,6 +443,12 @@ WORKER_1_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${WORKER_1_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${WORKER_1_INSTANCE_ID} \ @@ -437,6 +469,12 @@ WORKER_2_INSTANCE_ID=$(aws ec2 run-instances \ jq -r '.Instances[].InstanceId') ``` +``` +aws ec2 modify-instance-attribute \ + --instance-id ${WORKER_2_INSTANCE_ID} \ + --no-source-dest-check +``` + ``` aws ec2 create-tags \ --resources ${WORKER_2_INSTANCE_ID} \