1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-update-node-pools.adoc
Martin Gencur f281db32b6 OCPBUGS-53162: Long command-line prompts not visible
This commit break long command-line prompts into multiple lines so that
the command is visible without scrolling.
2025-03-18 15:10:22 +00:00

48 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-updating.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-update-node-pools_{context}"]
= Updating node pools in a hosted cluster
You can update your version of {product-title} by updating the node pools in your hosted cluster. The node pool version must not surpass the hosted control plane version.
The `.spec.release` field in the `NodePool` custom resource (CR) shows the version of a node pool.
.Procedure
* Change the `spec.release.image` value in the node pool by entering the following command:
+
[source,terminal]
----
$ oc patch nodepool <node_pool_name> -n <hosted_cluster_namespace> \// <1>
--type=merge \
-p '{"spec":{"nodeDrainTimeout":"60s","release":{"image":"<openshift_release_image>"}}}' <2>
----
+
<1> Replace `<node_pool_name>` and `<hosted_cluster_namespace>` with your node pool name and hosted cluster namespace, respectively.
<2> The `<openshift_release_image>` variable specifies the new {product-title} release image that you want to upgrade to, for example, `quay.io/openshift-release-dev/ocp-release:4.y.z-x86_64`. Replace `<4.y.z>` with the supported {product-title} version.
.Verification
* To verify that the new version was rolled out, check the `.status.conditions` value in the node pool by running the following command:
+
[source,terminal]
----
$ oc get -n <hosted_cluster_namespace> nodepool <node_pool_name> -o yaml
----
+
.Example output
[source,yaml]
----
status:
conditions:
- lastTransitionTime: "2024-05-20T15:00:40Z"
message: 'Using release image: quay.io/openshift-release-dev/ocp-release:4.y.z-x86_64' <1>
reason: AsExpected
status: "True"
type: ValidReleaseImage
----
<1> Replace `<4.y.z>` with the supported {product-title} version.