|
| 1 | + |
| 2 | +// Module included in the following assemblies: |
| 3 | +// |
| 4 | +// * assemblies/rosa-nodes-machinepools-configuring.adoc |
| 5 | + |
| 6 | +:_content-type: PROCEDURE |
| 7 | +[id="rosa-nodes-machine-pools-local-zones_{context}"] |
| 8 | += Configuring Local Zones for machine pools |
| 9 | + |
| 10 | +Use the following steps to configure Local Zones for machine pools. |
| 11 | + |
| 12 | +[IMPORTANT] |
| 13 | +==== |
| 14 | +AWS Local Zones are supported on Red Hat OpenShift Service on AWS 4.12. See the link:https://access.redhat.com/articles/6989889[Red Hat Knowledgebase article] for information on how to enable Local Zones. |
| 15 | +==== |
| 16 | +.Prerequisites |
| 17 | + |
| 18 | +* ROSA is generally available in the parent region of choice. See the link:https://aws.amazon.com/about-aws/global-infrastructure/localzones/locations/?pg=ln&cp=bn#GA[AWS generally available locations list] to determine the Local Zone available to specific AWS regions. |
| 19 | +* The ROSA cluster was initially built in an existing Amazon VPC (BYO-VPC). |
| 20 | +* The maximum transmission unit (MTU) for the ROSA cluster is set at 1200. |
| 21 | ++ |
| 22 | +[IMPORTANT] |
| 23 | +==== |
| 24 | +Generally, the Maximum Transmission Unit (MTU) between an Amazon EC2 instance in a Local Zone and an Amazon EC2 instance in the Region is 1300. See link:https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html[How Local Zones work] in the AWS documentation. |
| 25 | +The cluster network MTU must always be less than the EC2 MTU to account for the overhead. The specific overhead is determined by your network plugin, for example: |
| 26 | +
|
| 27 | +- OVN-Kubernetes: `100 bytes` |
| 28 | +- OpenShift SDN: `50 bytes` |
| 29 | +
|
| 30 | +The network plugin could provide additional features that may also decrease the MTU. Check the documentation for additional information. |
| 31 | + |
| 32 | +==== |
| 33 | +* The AWS account has link:https://docs.aws.amazon.com/local-zones/latest/ug/getting-started.html#getting-started-find-local-zone[Local Zones enabled]. |
| 34 | +* The AWS account has a link:https://docs.aws.amazon.com/local-zones/latest/ug/getting-started.html#getting-started-create-local-zone-subnet[Local Zone subnet] for the same VPC as the cluster. |
| 35 | +* The AWS account has a subnet that is associated with a routing table that has a route to a NAT gateway. |
| 36 | +* The AWS account has the tag `kubernetes.io/cluster/<infra_id>: shared' on the associated subnet. |
| 37 | +
|
| 38 | +.Procedure |
| 39 | +
|
| 40 | +. Create a machine pool on the cluster by running the following ROSA CLI command. |
| 41 | ++ |
| 42 | +[source,terminal] |
| 43 | +---- |
| 44 | +$ rosa create machinepool -c <cluster-name> -i |
| 45 | +---- |
| 46 | ++ |
| 47 | +. Add the subnet and instance type for the machine pool in ROSA CLI. After several minutes, the cluster will provision the nodes. |
| 48 | ++ |
| 49 | +[source, terminal] |
| 50 | +---- |
| 51 | +I: Enabling interactive mode <1> |
| 52 | +? Machine pool name: xx-lz-xx <2> |
| 53 | +? Create multi-AZ machine pool: No <3> |
| 54 | +? Select subnet for a single AZ machine pool (optional): Yes <4> |
| 55 | +? Subnet ID: subnet-<a> (region-info) <5> |
| 56 | +? Enable autoscaling (optional): No <6> |
| 57 | +? Replicas: 2 <7> |
| 58 | +I: Fetching instance types <8> |
| 59 | +---- |
| 60 | ++ |
| 61 | +
|
| 62 | +<1> Enables interactive mode. |
| 63 | +<2> Names the machine pool. This is limited to alphanumeric and a maximum length of 30 characters. |
| 64 | +<3> Set this option to no. |
| 65 | +<4> Set this option to yes. |
| 66 | +<5> Selects a subnet ID from the list. |
| 67 | +<6> Select yes to enable autoscaling or no to disable autoscaling. |
| 68 | +<7> Selects the number of machines for the machine pool. This number can be anywhere from 1 - 180. |
| 69 | +<8> Selects an instance type from the list. Only instance types that are supported in the selected Local Zone will appear. |
| 70 | +
|
| 71 | +. Provide the subnet ID to provision the machine pool in the Local Zone. |
| 72 | +
|
| 73 | +See the link:https://aws.amazon.com/about-aws/global-infrastructure/localzones/locations/[AWS Local Zones locations] list on AWS for generally available and announced AWS Local Zone locations. |
0 commit comments