Skip to content

Commit cad8f80

Browse files
authored
Merge pull request #65877 from dfitzmau/OSDOCS-5851-newer
2 parents 393a273 + cab27dd commit cad8f80

16 files changed

+342
-56
lines changed

_topic_maps/_topic_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,9 @@ Topics:
585585
- Name: Fedora CoreOS (FCOS) image layering
586586
File: coreos-layering
587587
Distros: openshift-origin
588+
- Name: AWS Local Zone tasks
589+
File: aws-compute-edge-tasks
590+
Distros: openshift-enterprise
588591
---
589592
Name: Updating clusters
590593
Dir: updating

modules/edge-machine-pools-aws-local-zones.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// Module included in the following assemblies:
22
// * installing/installing_aws/installing-aws-localzone.adoc
3+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
4+
5+
ifeval::["{context}" == "aws-compute-edge-tasks"]
6+
:edge:
7+
endif::[]
38

49
:_content-type: CONCEPT
510
[id="edge-machine-pools-aws-local-zones_{context}"]
@@ -14,7 +19,7 @@ When deploying a cluster that uses Local Zones, consider the following points:
1419
1520
[IMPORTANT]
1621
====
17-
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. For more information, see link:https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html[How Local Zones work] in the AWS documentation.
22+
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. For more information, see link:https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html[How Local Zones work] in the AWS documentation.
1823
The cluster network MTU must be always less than the EC2 MTU to account for the overhead. The specific overhead is determined by the network plugin, for example:
1924
2025
- OVN-Kubernetes: `100 bytes`
@@ -39,6 +44,7 @@ By default, the system creates the edge compute pool manifests only if users add
3944

4045
By default, the machine sets for the edge compute pool defines the taint of `NoSchedule` to prevent regular workloads from spreading on Local Zone instances. Users can only run user workloads if they define tolerations in the pod specification.
4146

47+
ifndef::edge[]
4248
The following examples show `install-config.yaml` files that use the edge machine pool.
4349

4450
.Configuration that uses an edge pool with a custom instance type
@@ -106,3 +112,8 @@ pullSecret: '{"auths": ...}'
106112
sshKey: ssh-ed25519 AAAA...
107113
----
108114
<1> Specify the name of the security group as it appears in the Amazon EC2 console, including the `sg` prefix.
115+
endif::edge[]
116+
117+
ifeval::["{context}" == "aws-compute-edge-tasks"]
118+
:!edge:
119+
endif::[]

modules/installation-aws-add-local-zone-locations.adoc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/installing_aws/installing-aws-localzone.adoc
4+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
45

56
:_content-type: PROCEDURE
67
[id="installation-aws-add-local-zone-locations_{context}"]
@@ -12,6 +13,23 @@ If you plan to create the subnets in AWS Local Zones, you must opt in to each zo
1213

1314
* You have installed the AWS CLI.
1415
* You have determined an AWS Region for where you want to deploy your {product-title} cluster.
16+
* You have attached a permissive IAM policy to a user or role account that opts in to the zone group. Consider the following configuration as an example IAM policy:
17+
+
18+
[source,yaml]
19+
----
20+
{
21+
"Version": "2012-10-17",
22+
"Statement": [
23+
{
24+
"Action": [
25+
"ec2:ModifyAvailabilityZoneGroup"
26+
],
27+
"Effect": "Allow",
28+
"Resource": "*"
29+
}
30+
]
31+
}
32+
----
1533
1634
.Procedure
1735
@@ -36,6 +54,7 @@ Depending on the AWS Region, the list of available zones can be long. The comman
3654
[source,terminal]
3755
----
3856
$ aws ec2 modify-availability-zone-group \
39-
--group-name "<value_of_GroupName>" \
57+
--group-name "<value_of_GroupName>" \// <1>
4058
--opt-in-status opted-in
4159
----
60+
<1> For `<value_of_GroupName>`, specify the name of the group of the Local Zone where you want to create subnets. For example, specify `us-east-1-nyc-1` to use the zone `us-east-1-nyc-1a` (US East New York).

modules/installation-cloudformation-subnet-localzone.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/installing_aws/installing-aws-localzone.adoc
4+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
45

56
:_content-type: REFERENCE
67
[id="installation-cloudformation-subnet-localzone_{context}"]

modules/installation-creating-aws-subnet-localzone.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/installing_aws/installing-aws-localzone.adoc
4+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
45

56
:_content-type: PROCEDURE
67
[id="installation-creating-aws-subnet-localzone_{context}"]

modules/installation-extend-edge-nodes-aws-local-zones.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * post_installation_configuration/cluster-tasks.adoc
3+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
44

55
ifeval::["{context}" == "installing-aws-localzone"]
66
:localzone:

modules/machine-edge-pool-review-nodes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Module included in the following assemblies
22
// * installing/installing_aws/installing-aws-localzone.adoc
3+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
34

45
:_content-type: PROCEDURE
56
[id="machine-edge-pool-review-nodes_{context}"]

modules/machineset-creating.adoc

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
// * machine_management/creating_machinesets/creating-machineset-gcp.adoc
88
// * machine_management/creating_machinesets/creating-machineset-osp.adoc
99
// * machine_management/creating_machinesets/creating-machineset-vsphere.adoc
10-
// * post_installation_configuration/cluster-tasks.adoc
1110
// * windows_containers/creating_windows_machinesets/creating-windows-machineset-aws.adoc
1211
// * windows_containers/creating_windows_machinesets/creating-windows-machineset-azure.adoc
1312
// * windows_containers/creating_windows_machinesets/creating-windows-machineset-vsphere.adoc
1413
// * windows_containers/creating_windows_machinesets/creating-windows-machineset-gcp.adoc
14+
// * post_installation_configuration/cluster-tasks.adoc
15+
// * post_installation_configuration/installation-creating-aws-subnet-localzone.adoc
16+
// * post_installation_configuration/aws-compute-edge-tasks.adoc
1517

1618
ifeval::["{context}" == "creating-windows-machineset-aws"]
1719
:win:
@@ -28,6 +30,9 @@ endif::[]
2830
ifeval::["{context}" == "creating-machineset-vsphere"]
2931
:vsphere:
3032
endif::[]
33+
ifeval::["{context}" == "aws-compute-edge-tasks"]
34+
:localzone:
35+
endif::[]
3136

3237
:_content-type: PROCEDURE
3338
[id="machineset-creating_{context}"]
@@ -198,17 +203,22 @@ $ oc get machineset -n openshift-machine-api
198203
.Example output
199204
[source,terminal]
200205
----
206+
ifdef::win,localzone[]
207+
NAME DESIRED CURRENT READY AVAILABLE AGE
201208
ifdef::win[]
202-
NAME DESIRED CURRENT READY AVAILABLE AGE
203-
agl030519-vplxk-windows-worker-us-east-1a 1 1 1 1 11m
204-
agl030519-vplxk-worker-us-east-1a 1 1 1 1 55m
205-
agl030519-vplxk-worker-us-east-1b 1 1 1 1 55m
206-
agl030519-vplxk-worker-us-east-1c 1 1 1 1 55m
207-
agl030519-vplxk-worker-us-east-1d 0 0 55m
208-
agl030519-vplxk-worker-us-east-1e 0 0 55m
209-
agl030519-vplxk-worker-us-east-1f 0 0 55m
209+
agl030519-vplxk-windows-worker-us-east-1a 1 1 1 1 11m
210210
endif::win[]
211-
ifndef::win[]
211+
ifdef::localzone[]
212+
agl030519-vplxk-edge-us-east-1-nyc-1a 1 1 1 1 11m
213+
endif::localzone[]
214+
agl030519-vplxk-worker-us-east-1a 1 1 1 1 55m
215+
agl030519-vplxk-worker-us-east-1b 1 1 1 1 55m
216+
agl030519-vplxk-worker-us-east-1c 1 1 1 1 55m
217+
agl030519-vplxk-worker-us-east-1d 0 0 55m
218+
agl030519-vplxk-worker-us-east-1e 0 0 55m
219+
agl030519-vplxk-worker-us-east-1f 0 0 55m
220+
endif::win,localzone[]
221+
ifndef::win,localzone[]
212222
NAME DESIRED CURRENT READY AVAILABLE AGE
213223
agl030519-vplxk-infra-us-east-1a 1 1 1 1 11m
214224
agl030519-vplxk-worker-us-east-1a 1 1 1 1 55m
@@ -217,11 +227,30 @@ agl030519-vplxk-worker-us-east-1c 1 1 1 1 55m
217227
agl030519-vplxk-worker-us-east-1d 0 0 55m
218228
agl030519-vplxk-worker-us-east-1e 0 0 55m
219229
agl030519-vplxk-worker-us-east-1f 0 0 55m
220-
endif::win[]
230+
endif::win,localzone[]
221231
----
222232
+
223233
When the new compute machine set is available, the `DESIRED` and `CURRENT` values match. If the compute machine set is not available, wait a few minutes and run the command again.
224234
235+
ifdef::localzone[]
236+
* Optional: To check nodes that were created by the edge machine, run the following command:
237+
+
238+
[source,terminal]
239+
----
240+
$ oc get nodes -l node-role.kubernetes.io/edge
241+
----
242+
+
243+
.Example output
244+
[source,terminal]
245+
----
246+
NAME STATUS ROLES AGE VERSION
247+
ip-10-0-207-188.ec2.internal Ready edge,worker 172m v1.25.2+d2e245f
248+
----
249+
endif::localzone[]
250+
251+
ifeval::["{context}" == "aws-compute-edge-tasks"]
252+
:!localzone:
253+
endif::[]
225254
ifeval::["{context}" == "creating-machineset-vsphere"]
226255
:!vsphere:
227256
endif::[]

0 commit comments

Comments
 (0)