|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_aws/installing-aws-vpc.adoc |
| 4 | +// * installing/installing_aws/installing-aws-private.adoc |
| 5 | +// * installing/installing_aws/installing-aws-government-region.adoc |
| 6 | +// * installing/installing_aws/installing-aws-secret-region.adoc |
| 7 | +// * installing/installing_aws/installing-aws-china.adoc |
| 8 | +// * installing/installing_aws/installing-aws-outposts-remote-workers.adoc |
| 9 | + |
| 10 | +:_content-type: PROCEDURE |
| 11 | +[id="installation-aws-vpc-security-groups_{context}"] |
| 12 | += Applying existing AWS security groups to the cluster |
| 13 | + |
| 14 | +Applying existing AWS security groups to your control plane and compute machines can help you meet the security needs of your organization, in such cases where you need to control the incoming or outgoing traffic of these machines. |
| 15 | + |
| 16 | +.Prerequisites |
| 17 | +* You have created the security groups in AWS. For more information, see the AWS documentation about working with link:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html[security groups]. |
| 18 | +* The security groups must be associated with the existing VPC that you are deploying the cluster to. The security groups cannot be associated with another VPC. |
| 19 | +* You have an existing `install-config.yaml` file. |
| 20 | +
|
| 21 | +.Procedure |
| 22 | + |
| 23 | +. In the `install-config.yaml` file, edit the `compute.platform.aws.additionalSecurityGroupIDs` parameter to specify one or more custom security groups for your compute machines. |
| 24 | +. Edit the `controlPlane.platform.aws.additionalSecurityGroupIDs` parameter to specify one or more custom security groups for your control plane machines. |
| 25 | +. Save the file and reference it when deploying the cluster. |
| 26 | + |
| 27 | +.Sample `install-config.yaml` file that specifies custom security groups |
| 28 | +[source,yaml] |
| 29 | +---- |
| 30 | +# ... |
| 31 | +compute: |
| 32 | +- hyperthreading: Enabled |
| 33 | + name: worker |
| 34 | + platform: |
| 35 | + aws: |
| 36 | + additionalSecurityGroupIDs: |
| 37 | + - sg-1 <1> |
| 38 | + - sg-2 |
| 39 | + replicas: 3 |
| 40 | +controlPlane: |
| 41 | + hyperthreading: Enabled |
| 42 | + name: master |
| 43 | + platform: |
| 44 | + aws: |
| 45 | + additionalSecurityGroupIDs: |
| 46 | + - sg-3 |
| 47 | + - sg-4 |
| 48 | + replicas: 3 |
| 49 | +platform: |
| 50 | + aws: |
| 51 | + region: us-east-1 |
| 52 | + subnets: <2> |
| 53 | + - subnet-1 |
| 54 | + - subnet-2 |
| 55 | + - subnet-3 |
| 56 | +---- |
| 57 | +<1> Specify the name of the security group as it appears in the Amazon EC2 console, including the `sg` prefix. |
| 58 | +<2> Specify subnets for each availability zone that your cluster uses. |
0 commit comments