Skip to content

Commit d47bdb7

Browse files
authored
Merge pull request #88722 from mletalie/OSDOCS-12833
[OSDOCS-12833]Allow specification of az zones for new/secondary machine pools
2 parents 2e8ef0f + 6899c56 commit d47bdb7

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

modules/sdpolicy-am-gcp-compute-types.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// * osd_architecture/osd_policy/osd-service-definition.adoc
44
:_mod-docs-content-type: CONCEPT
55
[id="gcp-compute-types_{context}"]
6-
= Google Cloud compute types
6+
= Google Cloud instance types
77

88
{product-title} offers the following worker node types and sizes on Google Cloud that are chosen to have a common CPU and memory capacity that are the same as other cloud instance types:
99
[NOTE]
1010
====
11-
`e2`, `a2`, and `a3` compute types are available for CCS only.
11+
`e2`, `a2`, and `a3` instance types are available for CCS only.
1212
====
1313

1414
.General purpose

osd_cluster_admin/osd_nodes/osd-nodes-machinepools-about.adoc

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,63 @@ By default, a cluster is created with one machine pool. You can add additional m
2727
Multiple machine pools can exist on a single cluster, and they can each have different types or different size nodes.
2828

2929
== Machine pools in multiple zone clusters
30-
When you create a machine pool in a multiple availability zone (Multi-AZ) cluster, that one machine pool has 3 zones. The machine pool, in turn, creates a total of 3 compute machine sets - one for each zone in the cluster. Each of those compute machine sets manages one or more machines in its respective availability zone.
30+
By default, when you create a machine pool in a multiple availability zone (Multi-AZ) cluster, that one machine pool has 3 zones. The machine pool, in turn, creates a total of 3 compute machine sets - one for each zone in the cluster. Each of those compute machine sets manages one or more machines in its respective availability zone.
3131

3232
If you create a new Multi-AZ cluster, the machine pools are replicated to those zones automatically. If you add a machine pool to an existing Multi-AZ, the new pool is automatically created in those zones. Similarly, deleting a machine pool will delete it from all zones.
3333
Due to this multiplicative effect, using machine pools in Multi-AZ cluster can consume more of your project's quota for a specific region when creating machine pools.
3434

35+
=== Deploying a machine pool in a single availability zone within a Multi-AZ cluster
36+
{product-title} on {GCP} users can deploy a single machine pool in a specific availability zone that is part of a Multi-AZ cluster using the {cluster-manager} CLI (`ocm`). This option is especially useful in situations where a desired instance type is not available in all availability zones of a specific region as well as when your cluster does not need more than one of the desired instance types.
37+
38+
[IMPORTANT]
39+
====
40+
You cannot assign the default machine pool to a single availability zone during the provisioning of a Multi-AZ cluster.
41+
====
42+
43+
.Prerequisites
44+
* You installed the link:https://console.redhat.com/openshift/downloads[OpenShift Cluster Manager API command-line interface (`ocm`)].
45+
46+
[IMPORTANT]
47+
====
48+
[subs="attributes+"]
49+
OpenShift Cluster Manager API command-line interface (`ocm`) is a Technology Preview feature only.
50+
For more information about the support scope of Red Hat Technology Preview features, see link:https://access.redhat.com/support/offerings/techpreview/[Technology Preview Features Support Scope].
51+
====
52+
53+
.Procedure
54+
55+
** Deploy a machine pool to a specific availability zone by running the following command:
56+
57+
[source,terminal]
58+
----
59+
ocm create machine-pool \
60+
--cluster <cluster_name|cluster_id> \ <1>
61+
--instance-type <instance_type> \ <2>
62+
--replicas <number_of_replicas> \ <3>
63+
--availability-zone <availability_zone> \ <4>
64+
[flags] \ <5>
65+
<machine_pool_id> <6>
66+
67+
----
68+
<1> Replace `<cluster_name|cluster_id>` with the name or ID of the cluster that you want to add the machine pool to.
69+
<2> Replace `<instance_type>` with the instance type you want to deploy to the single availability zone.
70+
<3> Replace `<replicas>` with the number of replicas of the selected instance type you want to include in the machine pool.
71+
<4> Replace `<availability_zone>` with the availability zone you want to add the machine pool to.
72+
<5> Optional: Replace [flags] with any additional flags available for machine pool creation.
73+
<6> Replace `<machine_pool_id>` with an ID for your machine pool.
74+
75+
[NOTE]
76+
====
77+
To view the additional flags available for machine pool creation, run the `ocm create machine-pool --help` command.
78+
====
79+
80+
81+
For more information about {GCP} instance types and availability zones, see the _Additional resources_ section.
82+
3583
[role="_additional-resources"]
3684
== Additional resources
3785
* xref:../../osd_cluster_admin/osd_nodes/osd-nodes-about-autoscaling-nodes.adoc#osd-nodes-about-autoscaling-nodes[About autoscaling]
86+
87+
* xref:../../osd_architecture/osd_policy/osd-service-definition.adoc#gcp-compute-types_osd-service-definition[Google Cloud instance types]
88+
89+
* xref:../../osd_architecture/osd_policy/osd-service-definition.adoc#gcp-regions-availability-zones_osd-service-definition[Google Cloud regions and availability zones]

osd_whats_new/osd-whats-new.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ With its foundation in Kubernetes, {product-title} is a complete {OCP} cluster p
1919
=== Q1 2025
2020

2121
* **New version of {product-title} available.** {product-title} on {gcp} and {product-title} on {aws} versions 4.18 are now available. For more information about upgrading to this latest version, see xref:../upgrading/osd-upgrades.adoc#osd-upgrades[Red Hat OpenShift Dedicated cluster upgrades].
22+
* **Support for assigning newly created machine pools to specific availability zones within a Multi-AZ cluster.**
23+
{product-title} on {GCP} users can now assign machine pools to specific availability zones using the {cluster-manager} CLI (`ocm`). For more information, see xref:../osd_cluster_admin/osd_nodes/osd-nodes-machinepools-about.adoc#deploying-a-machine-pool-in-a-single-availability-zone-within-a-multi-az-cluster[Deploying a machine pool in a single availability zone within a Multi-AZ cluster].
2224

2325
* **Cluster node limit update.** {product-title} clusters versions 4.14.14 and greater can now scale to 249 worker nodes. This is an increase from the previous limit of 180 nodes. For more information, see xref:../osd_planning/osd-limits-scalability.adoc#osd-limits-scalability[limits and scalability].
2426
// * **{product-title} SDN network plugin blocks future major upgrades**

0 commit comments

Comments
 (0)