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
From {product-title} 4.14.13, the {lcao} provides you with an alternative way to upgrade the platform version of a {sno} cluster.
10
11
The image-based upgrade is faster than the standard upgrade method and allows you to directly upgrade from {product-title} <4.y> to <4.y+2>, and <4.y.z> to <4.y.z+n>.
11
12
@@ -46,26 +47,33 @@ kind: ImageBasedUpgrade
46
47
metadata:
47
48
name: upgrade
48
49
spec:
49
-
stage: Idle # <1>
50
-
seedImageRef: # <2>
50
+
stage: Idle
51
+
seedImageRef:
51
52
version: <target_version>
52
53
image: <seed_container_image>
53
54
pullSecretRef:
54
55
name: <seed_pull_secret>
55
56
autoRollbackOnFailure: {}
56
-
# initMonitorTimeoutSeconds: 1800 # <3>
57
-
extraManifests: # <4>
57
+
extraManifests:
58
58
- name: example-extra-manifests
59
59
namespace: openshift-lifecycle-agent
60
-
oadpContent: # <5>
60
+
# List of ConfigMap resources that contain the OADP Backup and Restore CRs.
61
+
oadpContent:
61
62
- name: oadp-cm-example
62
63
namespace: openshift-adp
63
64
----
64
-
<1> Stage of the `ImageBasedUpgrade` CR. The value can be `Idle`, `Prep`, `Upgrade`, or `Rollback`.
65
-
<2> Target platform version, seed image to be used, and the secret required to access the image.
66
-
<3> Optional: Time frame in seconds to roll back when the upgrade does not complete within that time frame after the first reboot. If not defined or set to `0`, the default value of `1800` seconds (30 minutes) is used.
67
-
<4> Optional: List of `ConfigMap` resources that contain your custom catalog sources to retain after the upgrade, and your extra manifests to apply to the target cluster that are not part of the seed image.
68
-
<5> List of `ConfigMap` resources that contain the {oadp-short}`Backup` and `Restore` CRs.
65
+
66
+
where
67
+
68
+
`spec.stage`:: Defines the stage of the `ImageBasedUpgrade` CR. The value can be `Idle`, `Prep`, `Upgrade`, or `Rollback`.
69
+
70
+
`spec.seedImageRef`:: Defines the seed image to be used, the target platform version, and the secret required to access the image.
71
+
72
+
`initMonitorTimeoutSeconds`:: Optionally defines the time frame in seconds to roll back when the upgrade does not complete within that time frame after the first reboot. If not defined or set to `0`, the default value of `1800` seconds (30 minutes) is used.
73
+
74
+
`spec.extraManifests`:: Optionally defines the list of `ConfigMap` resources that contain your custom catalog sources to retain after the upgrade, and your extra manifests to apply to the target cluster that are not part of the seed image.
75
+
76
+
`spec.oadpContent`:: Defines the list of `ConfigMap` resources that contain the {oadp-short}`Backup` and `Restore` CRs.
Use the {oadp-short} Operator to back up and restore applications during the image-based upgrade by creating `Backup` and `Restore` CRs wrapped in `ConfigMap` objects.
10
+
7
11
With the {oadp-short} Operator, you can back up and restore your applications on your target clusters by using `Backup` and `Restore` CRs wrapped in `ConfigMap` objects.
8
12
The application must work on the current and the target {product-title} versions so that they can be restored after the upgrade.
9
13
The backups must include resources that were initially created.
<1> The value must be a list of comma-separated objects in `group/version/resource/name` format for cluster-scoped resources or `group/version/resource/namespace/name` format for namespace-scoped resources, and it must be attached to the related `Backup` CR.
85
+
86
+
* The `metadata.annotations.lca.openshift.io/apply-label` value must be a list of comma-separated objects in `group/version/resource/name` format for cluster-scoped resources or `group/version/resource/namespace/name` format for namespace-scoped resources, and it must be attached to the related `Backup` CR.
Extra manifests enable the {lcao} to restore cluster-specific configurations after the upgrade pivot but before restoring application artifacts.
10
+
7
11
The {lcao} uses extra manifests to restore your target clusters after rebooting with the new stateroot deployment and before restoring application artifacts.
8
12
9
13
Different deployment methods require a different way to apply the extra manifests:
Your deployments must meet specific requirements for a successful image-based upgrade, which can be performed using either {ztp} or non-GitOps deployment methods.
10
+
8
11
For a successful image-based upgrade, your deployments must meet certain requirements.
9
12
10
13
There are different deployment methods in which you can perform the image-based upgrade:
The seed image targets {sno} clusters with matching hardware and configuration, requiring the seed cluster to match specific aspects of the target clusters.
10
+
7
11
The seed image targets a set of {sno} clusters with the same hardware and similar configuration.
8
12
This means that the seed cluster must match the configuration of the target clusters for the following items:
Copy file name to clipboardExpand all lines: modules/cnf-image-based-upgrade.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@
5
5
[id="cnf-image-based-upgrade_{context}"]
6
6
= Stages of the image-based upgrade
7
7
8
+
[role="_abstract"]
9
+
The image-based upgrade consists of four stages that you control by setting the `spec.stage` field in the `ImageBasedUpgrade` CR: Idle, Prep, Upgrade, and Rollback.
10
+
8
11
After generating the seed image on the seed cluster, you can move through the stages on the target cluster by setting the `spec.stage` field to one of the following values in the `ImageBasedUpgrade` CR:
When using {rh-rhacm}, the hub cluster must meet specific conditions including disabling optional add-ons and upgrading to at least the target version.
10
+
7
11
If you are using {rh-rhacm-first}, your hub cluster needs to meet the following conditions:
8
12
9
13
* To avoid including any {rh-rhacm} resources in your seed image, you need to disable all optional {rh-rhacm} add-ons before generating the seed image.
0 commit comments