Skip to content

Commit af71c49

Browse files
authored
Add ARM installation support for AWS OCP deployments in AWS. [RHOAIENG-26432]
2 parents ee42d41 + b01e434 commit af71c49

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

ods_ci/docs/infrastructure_configuration_variables.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ The infrastructure configuration variables are used to configure the infrastruct
1010
| `hive_claim_ns` | The namespace of the claim. | `rhods` | `all` |
1111
| `image_set` | The image set name to use for the cluster. | `rhods-openshift` | `all` |
1212
| `base_domain` | The base domain to use for the cluster. | `""` | `aws` |
13-
| `worker_node_instance_type` | The instance type to use for the worker nodes. | `m5.xlarge` | `all` |
13+
| `worker_node_instance_type` | The instance type to use for the worker nodes. | `m5.2xlarge` | `all` |
1414
| `worker_node_replicas` | The number of worker nodes to create. | `2` | `all` |
15-
| `master_node_instance_type` | The AWS instance type to use for the master nodes. | `m5.xlarge` | `all` |
15+
| `master_node_instance_type` | The AWS instance type to use for the master nodes. | `m5.2xlarge` | `all` |
1616
| `master_node_replicas` | The number of master nodes to create. | `3` | `all` |
1717
| `aws_region` | The AWS region to use for the cluster. | `us-east-1` | `aws` |
1818
| `pull_secret` | The pull secret to use for the cluster. | `""` | `all` |
1919
| `ssh_key` | The SSH key to use for the cluster. | `""` | `all` |
2020
| `AWS_ACCESS_KEY_ID` | The AWS access key ID. | `""` | `aws` |
2121
| `AWS_SECRET_ACCESS_KEY` | The AWS secret access key. | `""` | `aws` |
22-
| `release_image` | The OpenShift image to use for the cluster. | `"quay.io/openshift-release-dev/ocp-release:4.10.42-x86_64"` | `all` |
22+
| `aws_worker_architecture` | Architecture for AWS worker nodes | `amd64` | `aws` |
23+
| `aws_master_architecture` | Architecture for AWS master nodes | `amd64` | `aws` |
24+
| `release_image` | The OpenShift image to use for the cluster. | `"quay.io/openshift-release-dev/ocp-release:4.15.25-multi"` | `all` |
2325
| `gcp_region` | The GCP region to use for the cluster. | `us-central1` | `gcp` |
2426
| `gcp_project_id` | The GCP project ID to use for the cluster. | `""` | `gcp` |
2527
| `gcp_region` | The GCP region to use for the cluster. | `us-central1` | `gcp` |

ods_ci/infrastructure_configuration.yaml.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ infrastructure_configurations:
33
hive_cluster_name: rhodsawstest
44
hive_claim_name: rhodsawstestclaim
55
use_cluster_pool: True
6-

ods_ci/tasks/Resources/Provisioning/Hive/AWS/aws-cluster.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ items:
3434
baseDomain: {{ base_domain }}
3535
compute:
3636
- name: worker
37+
architecture: {{ aws_worker_architecture|default("amd64") }}
3738
platform:
3839
aws:
3940
type: {{ worker_node_instance_type|default("m5.2xlarge") }}
4041
replicas: {{ worker_node_replicas|default("2") }}
4142
controlPlane:
4243
name: master
44+
architecture: {{ aws_master_architecture|default("amd64") }}
4345
platform:
4446
aws:
4547
type: {{ master_node_instance_type|default("m5.2xlarge") }}
@@ -79,4 +81,4 @@ items:
7981
name: {{ image_set|default("rhods-openshift") }}
8082
namespace: {{ hive_claim_ns }}
8183
spec:
82-
releaseImage: {{ openshift_image|default("quay.io/openshift-release-dev/ocp-release:4.15.25-x86_64") }}
84+
releaseImage: {{ openshift_image|default("quay.io/openshift-release-dev/ocp-release:4.15.25-multi") }}

ods_ci/utils/scripts/ocm/templates/create-cluster.jinja

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,20 @@
2323
"compute_machine_type": {
2424
"id": "{{ COMPUTE_MACHINE_TYPE }}"
2525
}
26+
{% if ARCHITECTURE == "arm64" %}
27+
,"multi_arch": {
28+
"enabled": true
29+
}
30+
{% endif %}
2631
},
2732
{% if CLOUD_PROVIDER == "aws" %}
2833
"aws": {
2934
"access_key_id": "{{ AWS_ACCESS_KEY_ID }}",
3035
"secret_access_key": "{{ AWS_SECRET_ACCESS_KEY }}",
3136
"account_id": "{{ AWS_ACCOUNT_ID }}",
37+
{% if ARCHITECTURE == "arm64" %}
38+
"multi_arch": true,
39+
{% endif %}
3240
"tags": {
3341
"team": "{{ TEAM }}"
3442
}

0 commit comments

Comments
 (0)