Skip to content

Commit a9ed233

Browse files
authored
Merge pull request #107635 from lcavalle/TELCODOCS-2671-cnf-understanding-image-based-upgrade
TELCODOCS#2671: Vale check for cnf-understanding-image-based-upgrade
2 parents 1a5bb5f + bba8977 commit a9ed233

8 files changed

Lines changed: 47 additions & 12 deletions

edge_computing/image_based_upgrade/cnf-understanding-image-based-upgrade.adoc

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
[role="_abstract"]
910
From {product-title} 4.14.13, the {lcao} provides you with an alternative way to upgrade the platform version of a {sno} cluster.
1011
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>.
1112

@@ -46,26 +47,33 @@ kind: ImageBasedUpgrade
4647
metadata:
4748
name: upgrade
4849
spec:
49-
stage: Idle # <1>
50-
seedImageRef: # <2>
50+
stage: Idle
51+
seedImageRef:
5152
version: <target_version>
5253
image: <seed_container_image>
5354
pullSecretRef:
5455
name: <seed_pull_secret>
5556
autoRollbackOnFailure: {}
56-
# initMonitorTimeoutSeconds: 1800 # <3>
57-
extraManifests: # <4>
57+
extraManifests:
5858
- name: example-extra-manifests
5959
namespace: openshift-lifecycle-agent
60-
oadpContent: # <5>
60+
# List of ConfigMap resources that contain the OADP Backup and Restore CRs.
61+
oadpContent:
6162
- name: oadp-cm-example
6263
namespace: openshift-adp
6364
----
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.
6977

7078
include::modules/cnf-image-based-upgrade.adoc[leveloffset=+1]
7179

modules/cnf-image-based-upgrade-backup-guide.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Module included in the following assemblies:
22
// * edge_computing/image-based-upgrade/cnf-understanding-image-based-upgrade.adoc
33

4+
:_mod-docs-content-type: CONCEPT
45
[id="ztp-image-based-upgrade-backup-guide_{context}"]
56
= {oadp-short} backup and restore guidelines
67

8+
[role="_abstract"]
9+
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+
711
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.
812
The application must work on the current and the target {product-title} versions so that they can be restored after the upgrade.
913
The backups must include resources that were initially created.
@@ -67,7 +71,7 @@ metadata:
6771
name: acm-klusterlet
6872
namespace: openshift-adp
6973
annotations:
70-
lca.openshift.io/apply-label: rbac.authorization.k8s.io/v1/clusterroles/klusterlet,apps/v1/deployments/open-cluster-management-agent/klusterlet # <1>
74+
lca.openshift.io/apply-label: rbac.authorization.k8s.io/v1/clusterroles/klusterlet,apps/v1/deployments/open-cluster-management-agent/klusterlet
7175
labels:
7276
velero.io/storage-location: default
7377
spec:
@@ -78,4 +82,5 @@ spec:
7882
includedNamespaceScopedResources:
7983
- deployments
8084
----
81-
<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.

modules/cnf-image-based-upgrade-cluster-validated-software.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Module included in the following assemblies:
22
// * edge_computing/image-based-upgrade/cnf-understanding-image-based-upgrade.adoc
33

4+
:_mod-docs-content-type: REFERENCE
45
[id="cnf-image-based-upgrade-cluster-validated-software_{context}"]
56
= Minimum software version of components
67

8+
[role="_abstract"]
9+
The image-based upgrade requires specific minimum software versions for various components depending on your deployment method.
10+
711
Depending on your deployment method, the image-based upgrade requires the following minimum software versions.
812

913
.Minimum software version of components

modules/cnf-image-based-upgrade-extra-manifests-guide.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Module included in the following assemblies:
22
// * edge_computing/image-based-upgrade/cnf-understanding-image-based-upgrade.adoc
33

4+
:_mod-docs-content-type: CONCEPT
45
[id="cnf-image-based-upgrade-extra-manifests-guide_{context}"]
56
= Extra manifest guidelines
67

8+
[role="_abstract"]
9+
Extra manifests enable the {lcao} to restore cluster-specific configurations after the upgrade pivot but before restoring application artifacts.
10+
711
The {lcao} uses extra manifests to restore your target clusters after rebooting with the new stateroot deployment and before restoring application artifacts.
812

913
Different deployment methods require a different way to apply the extra manifests:

modules/cnf-image-based-upgrade-guidelines.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
[id="cnf-image-based-upgrade-guidelines_{context}"]
66
= Guidelines for the image-based upgrade
77

8+
[role="_abstract"]
9+
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+
811
For a successful image-based upgrade, your deployments must meet certain requirements.
912

1013
There are different deployment methods in which you can perform the image-based upgrade:

modules/cnf-image-based-upgrade-seed-image-guide.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Module included in the following assemblies:
22
// * edge_computing/image-based-upgrade/cnf-understanding-image-based-upgrade.adoc
33

4+
:_mod-docs-content-type: CONCEPT
45
[id="cnf-image-based-upgrade-seed-image-guide_{context}"]
56
= Seed image guidelines
67

8+
[role="_abstract"]
9+
The seed image targets {sno} clusters with matching hardware and configuration, requiring the seed cluster to match specific aspects of the target clusters.
10+
711
The seed image targets a set of {sno} clusters with the same hardware and similar configuration.
812
This means that the seed cluster must match the configuration of the target clusters for the following items:
913

modules/cnf-image-based-upgrade.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
[id="cnf-image-based-upgrade_{context}"]
66
= Stages of the image-based upgrade
77

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+
811
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:
912

1013
* `Idle`

modules/ztp-image-based-upgrade-hub-cluster-guide.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Module included in the following assemblies:
22
// * edge_computing/image-based-upgrade/cnf-understanding-image-based-upgrade.adoc
33

4+
:_mod-docs-content-type: CONCEPT
45
[id="ztp-image-based-upgrade-hub-cluster-guide_{context}"]
56
= Hub cluster guidelines
67

8+
[role="_abstract"]
9+
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+
711
If you are using {rh-rhacm-first}, your hub cluster needs to meet the following conditions:
812

913
* 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

Comments
 (0)