You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Creating an ARM64 boot image using the Azure image gallery
8
+
= Creating a 64-bit ARM boot image using the Azure image gallery
9
9
10
-
The following procedure describes how to manually generate an ARM64 boot image.
10
+
The following procedure describes how to manually generate a 64-bit ARM boot image.
11
11
12
12
.Prerequisites
13
13
@@ -21,7 +21,7 @@ The following procedure describes how to manually generate an ARM64 boot image.
21
21
----
22
22
$ az login
23
23
----
24
-
. Create a storage account and upload the `arm64` virtual hard disk (VHD) to your storage account. The {product-title} installation program creates a resource group, however, the boot image can also be uploaded to a custom named resource group:
24
+
. Create a storage account and upload the `aarch64` virtual hard disk (VHD) to your storage account. The {product-title} installation program creates a resource group, however, the boot image can also be uploaded to a custom named resource group:
= Creating a 64-bit x86 boot image using the Azure image gallery
8
+
9
+
The following procedure describes how to manually generate a 64-bit x86 boot image.
10
+
11
+
.Prerequisites
12
+
13
+
* You installed the Azure CLI (`az`).
14
+
* You created a single-architecture Azure installer-provisioned cluster with the multi-architecture installer binary.
15
+
16
+
.Procedure
17
+
18
+
. Log in to your Azure account by running the following command:
19
+
+
20
+
[source,terminal]
21
+
----
22
+
$ az login
23
+
----
24
+
. Create a storage account and upload the `x86_64` virtual hard disk (VHD) to your storage account by running the following command. The {product-title} installation program creates a resource group. However, the boot image can also be uploaded to a custom named resource group:
. Generate a shared access signature (SAS) token. Use this token to upload the {op-system} VHD to your storage container by running the following commands:
= Adding a multi-architecture compute machine set to your AWS cluster
7
8
8
-
= Adding an ARM64 compute machine set to your cluster
9
+
After creating a multi-architecture cluster, you can add nodes with different architectures.
9
10
10
-
To configure a cluster with multi-architecture compute machines, you must create a AWS ARM64 compute machine set. This adds ARM64 compute nodes to your cluster so that your cluster has multi-architecture compute machines.
11
+
You can add multi-architecture compute machines to a multi-architecture cluster in the following ways:
12
+
13
+
* Adding 64-bit x86 compute machines to a cluster that uses 64-bit ARM control plane machines and already includes 64-bit ARM compute machines. In this case, 64-bit x86 is considered the secondary architecture.
14
+
* Adding 64-bit ARM compute machines to a cluster that uses 64-bit x86 control plane machines and already includes 64-bit x86 compute machines. In this case, 64-bit ARM is considered the secondary architecture.
* You used the installation program to create an AMD64 single-architecture AWS cluster with the multi-architecture installer binary.
18
-
20
+
* You installed the {oc-first}.
21
+
* You used the installation program to create an 64-bit ARM or 64-bit x86 single-architecture AWS cluster with the multi-architecture installer binary.
19
22
20
23
.Procedure
21
-
* Create and modify a compute machine set, this will control the ARM64 compute nodes in your cluster.
24
+
25
+
. Log in to the {oc-first}.
26
+
27
+
. Create a YAML file, and add the configuration to create a compute machine set to control the 64-bit ARM or 64-bit x86 compute nodes in your cluster.
22
28
+
23
29
--
24
-
[source,terminal]
25
-
----
26
-
$ oc create -f aws-arm64-machine-set-0.yaml
27
-
----
28
-
.Sample YAML compute machine set to deploy an ARM64 compute node
30
+
.Example `MachineSet` object for an AWS 64-bit ARM or x86 compute node
<1> Specify the infrastructure ID that is based on the cluster ID that you set when you provisioned the cluster. If you have the OpenShift CLI installed, you can obtain the infrastructure ID by running the following command:
96
+
<1> Specify the infrastructure ID that is based on the cluster ID that you set when you provisioned the cluster. If you have the {oc-first} installed, you can obtain the infrastructure ID by running the following command:
95
97
+
96
98
[source,terminal]
97
99
----
98
100
$ oc get -o jsonpath=‘{.status.infrastructureName}{“\n”}’ infrastructure cluster
99
101
----
100
102
<2> Specify the infrastructure ID, role node label, and zone.
101
103
<3> Specify the role node label to add.
102
-
<4> Specify an ARM64 supported RedHat Enterprise Linux CoreOS (RHCOS) Amazon Machine Image (AMI) for your AWS zone for your OpenShift Container Platform nodes.
104
+
<4> Specify a Red{nbsp}Hat Enterprise Linux CoreOS (RHCOS) Amazon Machine Image (AMI) for your AWS zone for the nodes. The RHCOS AMI must be compatible with the machine architecture.
103
105
+
104
106
[source,terminal]
105
107
----
@@ -108,28 +110,37 @@ $ oc get configmap/coreos-bootimages \
<5> Specify an ARM64 supported machine type. For more information, refer to "Tested instance types for AWS 64-bit ARM"
112
-
<6> Specify the zone, for example `us-east-1a`. Ensure that the zone you select offers 64-bit ARM machines.
113
-
<7> Specify the region, for example, `us-east-1`. Ensure that the zone you select offers 64-bit ARM machines.
113
+
<5> Specify a machine type that aligns with the CPU architecture of the chosen AMI. For more information, see "Tested instance types for AWS 64-bit ARM"
114
+
<6> Specify the zone. For example,`us-east-1a`. Ensure that the zone you select has machines with the required architecture.
115
+
<7> Specify the region. For example, `us-east-1`. Ensure that the zone you select has machines with the required architecture.
114
116
--
115
117
118
+
. Create the compute machine set by running the following command:
119
+
+
120
+
[source,terminal]
121
+
----
122
+
$ oc create -f <file_name> <1>
123
+
----
124
+
<1> Replace `<file_name>` with the name of the YAML file with compute machine set configuration. For example: `aws-arm64-machine-set-0.yaml`, or `aws-amd64-machine-set-0.yaml`.
125
+
116
126
.Verification
117
127
118
-
. View the list of compute machine sets by entering the following command:
128
+
. View the list of compute machine sets by running the following command:
119
129
+
120
130
[source,terminal]
121
131
----
122
132
$ oc get machineset -n openshift-machine-api
123
133
----
124
-
You can then see your created ARM64 machine set.
134
+
+
135
+
The output must include the machine set that you created.
= Adding an ARM64 compute machine set to your GCP cluster
7
+
= Adding a multi-architecture compute machine set to your GCP cluster
8
8
9
-
To configure a cluster with multi-architecture compute machines, you must create a GCP ARM64 compute machine set. This adds ARM64 compute nodes to your cluster.
9
+
After creating a multi-architecture cluster, you can add nodes with different architectures.
10
+
11
+
You can add multi-architecture compute machines to a multi-architecture cluster in the following ways:
12
+
13
+
* Adding 64-bit x86 compute machines to a cluster that uses 64-bit ARM control plane machines and already includes 64-bit ARM compute machines. In this case, 64-bit x86 is considered the secondary architecture.
14
+
* Adding 64-bit ARM compute machines to a cluster that uses 64-bit x86 control plane machines and already includes 64-bit x86 compute machines. In this case, 64-bit ARM is considered the secondary architecture.
* You used the installation program to create an AMD64 single-architecture AWS cluster with the multi-architecture installer binary.
21
+
* You used the installation program to create a 64-bit x86 or 64-bit ARM single-architecture GCP cluster with the multi-architecture installer binary.
17
22
18
23
.Procedure
19
-
* Create and modify a compute machine set, this controls the ARM64 compute nodes in your cluster:
20
-
+
21
-
[source,terminal]
22
-
----
23
-
$ oc create -f gcp-arm64-machine-set-0.yaml
24
-
----
24
+
25
+
. Log in to the {oc-first}.
26
+
27
+
. Create a YAML file, and add the configuration to create a compute machine set to control the 64-bit ARM or 64-bit x86 compute nodes in your cluster.
25
28
+
26
29
--
27
-
.Sample GCP YAML compute machine set to deploy an ARM64 compute node
30
+
.Example `MachineSet` object for a GCP 64-bit ARM or 64-bit x86 compute node
28
31
[source,yaml]
29
32
----
30
33
apiVersion: machine.openshift.io/v1beta1
@@ -123,27 +126,35 @@ Use the `project` and `name` parameters from the output to create the path to im
123
126
$ projects/<project>/global/images/<image_name>
124
127
----
125
128
<4> Optional: Specify custom metadata in the form of a `key:value` pair. For example use cases, see the GCP documentation for link:https://cloud.google.com/compute/docs/metadata/setting-custom-metadata[setting custom metadata].
126
-
<5> Specify an ARM64 supported machine type. For more information, refer to _Tested instance types for GCP on 64-bit ARM infrastructures_ in "Additional resources".
129
+
<5> Specify a machine type that aligns with the CPU architecture of the chosen OS image. For more information, see "Tested instance types for GCP on 64-bit ARM infrastructures".
127
130
<6> Specify the name of the GCP project that you use for your cluster.
128
-
<7> Specify the region, for example, `us-central1`. Ensure that the zone you select offers 64-bit ARM machines.
131
+
<7> Specify the region. For example, `us-central1`. Ensure that the zone you select has machines with the required architecture.
129
132
--
130
133
134
+
. Create the compute machine set by running the following command:
135
+
+
136
+
[source,terminal]
137
+
----
138
+
$ oc create -f <file_name> <1>
139
+
----
140
+
<1> Replace `<file_name>` with the name of the YAML file with compute machine set configuration. For example: `gcp-arm64-machine-set-0.yaml`, or `gcp-amd64-machine-set-0.yaml`.
141
+
131
142
.Verification
132
-
. View the list of compute machine sets by entering the following command:
143
+
. View the list of compute machine sets by running the following command:
133
144
+
134
145
[source,terminal]
135
146
----
136
147
$ oc get machineset -n openshift-machine-api
137
148
----
138
-
You can then see your created ARM64 machine set.
149
+
The output must include the machine set that you created.
0 commit comments