mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
59 lines
1.9 KiB
Plaintext
59 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * scalability_and_performance/recommended-performance-scale-practices/recommended-control-plane-practices.adoc
|
|
// * machine_management/control_plane_machine_management/cpmso_provider_configurations/cpmso-config-options-aws.adoc
|
|
|
|
ifeval::["{context}" == "recommended-control-plane-practices"]
|
|
:scale-host:
|
|
endif::[]
|
|
ifeval::["{context}" == "cpmso-config-options-aws"]
|
|
:cpmso-config-options-aws:
|
|
endif::[]
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="cpms-changing-aws-instance-type_{context}"]
|
|
= Changing the Amazon Web Services instance type by using a control plane machine set
|
|
|
|
You can change the Amazon Web Services (AWS) instance type that your control plane machines use by updating the specification in the control plane machine set custom resource (CR).
|
|
|
|
.Prerequisites
|
|
|
|
* Your AWS cluster uses a control plane machine set.
|
|
|
|
.Procedure
|
|
|
|
ifdef::scale-host[]
|
|
. Edit your control plane machine set CR by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc --namespace openshift-machine-api edit controlplanemachineset.machine.openshift.io cluster
|
|
----
|
|
endif::scale-host[]
|
|
|
|
. Edit the following line under the `providerSpec` field:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
providerSpec:
|
|
value:
|
|
...
|
|
instanceType: <compatible_aws_instance_type> <1>
|
|
----
|
|
<1> Specify a larger AWS instance type with the same base as the previous selection. For example, you can change `m6i.xlarge` to `m6i.2xlarge` or `m6i.4xlarge`.
|
|
|
|
. Save your changes.
|
|
|
|
ifdef::scale-host[]
|
|
** For clusters that use the default `RollingUpdate` update strategy, the Operator automatically propagates the changes to your control plane configuration.
|
|
|
|
** For clusters that are configured to use the `OnDelete` update strategy, you must replace your control plane machines manually.
|
|
endif::scale-host[]
|
|
|
|
ifeval::["{context}" == "recommended-control-plane-practices"]
|
|
:!scale-host:
|
|
endif::[]
|
|
ifeval::["{context}" == "cpmso-config-options-aws"]
|
|
:!cpmso-config-options-aws:
|
|
endif::[]
|