mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
TELCODOCS-2155: Fix indentation in IBGU examples
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
cddaccc786
commit
58f0dc330c
@@ -10,7 +10,7 @@ Perform troubleshooting steps on the managed clusters that are affected by an is
|
||||
|
||||
[IMPORTANT]
|
||||
====
|
||||
If you are using the `ImageBasedGroupUpgrade` CR to upgrade your clusters, ensure that the `lcm.openshift.io/ibgu-<stage>-completed or `lcm.openshift.io/ibgu-<stage>-failed` cluster labels are updated properly after performing troubleshooting or recovery steps on the managed clusters.
|
||||
If you are using the `ImageBasedGroupUpgrade` CR to upgrade your clusters, ensure that the `lcm.openshift.io/ibgu-<stage>-completed` or `lcm.openshift.io/ibgu-<stage>-failed` cluster labels are updated properly after performing troubleshooting or recovery steps on the managed clusters.
|
||||
This ensures that the {cgu-operator} continues to manage the image-based upgrade for the cluster.
|
||||
====
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
:_mod-docs-content-type: CONCEPT
|
||||
[id="ztp-image-based-upgrade-concept_{context}"]
|
||||
= Managing the image-based upgrade at scale using the `ImageBasedGroupUpgrade` CR on the hub
|
||||
= Managing the image-based upgrade at scale using the ImageBasedGroupUpgrade CR on the hub
|
||||
|
||||
The `ImageBasedGroupUpgrade` CR combines the `ImageBasedUpgrade` and `ClusterGroupUpgrade` APIs.
|
||||
For example, you can define the cluster selection and rollout strategy with the `ImageBasedGroupUpgrade` API in the same way as the `ClusterGroupUpgrade` API.
|
||||
@@ -131,7 +131,7 @@ This ensures that the {cgu-operator} continues to manage the image-based upgrade
|
||||
====
|
||||
|
||||
For example, if you want to cancel the upgrade for all managed clusters except for clusters that successfully completed the upgrade, you can add an `Abort` action to your plan.
|
||||
The `Abort` action moves back the `ImageBasedUpgrade` CR to `Idle` stage, which cancels the upgrade on not yet upgraded clusters.
|
||||
The `Abort` action moves back the `ImageBasedUpgrade` CR to the `Idle` stage, which cancels the upgrade on clusters that are not yet upgraded.
|
||||
Adding a separate `Abort` action ensures that the {cgu-operator} does not perform the `Abort` action on clusters that have the `lcm.openshift.io/ibgu-upgrade-completed` label.
|
||||
|
||||
The cluster labels are removed after successfully canceling or finalizing the upgrade.
|
||||
@@ -139,7 +139,7 @@ The cluster labels are removed after successfully canceling or finalizing the up
|
||||
[id="ztp-image-based-upgrade-status-monitoring_{context}"]
|
||||
== Status monitoring
|
||||
|
||||
The `ImageBasedGroupUpgrade` CR ensures better monitoring experience with a comprehensive status reporting for all clusters that is aggregated in one place.
|
||||
The `ImageBasedGroupUpgrade` CR ensures a better monitoring experience with a comprehensive status reporting for all clusters that is aggregated in one place.
|
||||
You can monitor the following actions:
|
||||
|
||||
`status.clusters.completedActions`:: Shows all completed actions defined in the `plan` section.
|
||||
|
||||
@@ -26,28 +26,28 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
clusterLabelSelectors:
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke4
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke4
|
||||
ibuSpec:
|
||||
seedImageRef:
|
||||
image: quay.io/seed/image:4.16.0-rc.1
|
||||
version: 4.16.0-rc.1
|
||||
pullSecretRef:
|
||||
name: "<seed_pull_secret>"
|
||||
extraManifests:
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent:
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
extraManifests:
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent:
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
plan:
|
||||
- actions: ["Abort"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 5
|
||||
timeout: 10
|
||||
- actions: ["Abort"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 5
|
||||
timeout: 10
|
||||
----
|
||||
+
|
||||
All managed clusters that completed the `Prep` stage are moved back to the `Idle` stage.
|
||||
|
||||
@@ -27,28 +27,28 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
clusterLabelSelectors:
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke4
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke4
|
||||
ibuSpec:
|
||||
seedImageRef:
|
||||
image: quay.io/seed/image:4.17.0-rc.1
|
||||
version: 4.17.0-rc.1
|
||||
pullSecretRef:
|
||||
name: "<seed_pull_secret>"
|
||||
extraManifests:
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent:
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
extraManifests:
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent:
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
plan:
|
||||
- actions: ["Rollback", "FinalizeRollback"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 200
|
||||
timeout: 2400
|
||||
- actions: ["Rollback", "FinalizeRollback"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 200
|
||||
timeout: 2400
|
||||
----
|
||||
|
||||
. Apply the created file by running the following command on the hub cluster:
|
||||
|
||||
@@ -30,30 +30,30 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
clusterLabelSelectors: # <1>
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke1
|
||||
- spoke4
|
||||
- spoke6
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke1
|
||||
- spoke4
|
||||
- spoke6
|
||||
ibuSpec:
|
||||
seedImageRef: # <2>
|
||||
image: quay.io/seed/image:4.16.0-rc.1
|
||||
version: 4.16.0-rc.1
|
||||
pullSecretRef:
|
||||
name: "<seed_pull_secret>"
|
||||
extraManifests: # <3>
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent: # <4>
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
extraManifests: # <3>
|
||||
- name: example-extra-manifests
|
||||
namespace: openshift-lifecycle-agent
|
||||
oadpContent: # <4>
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
plan: # <5>
|
||||
- actions: ["Prep"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 2
|
||||
timeout: 2400
|
||||
- actions: ["Prep"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 2
|
||||
timeout: 2400
|
||||
----
|
||||
<1> Clusters to upgrade.
|
||||
<2> Target platform version, the seed image to be used, and the secret required to access the image.
|
||||
|
||||
@@ -7,13 +7,13 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
clusterLabelSelectors: # <1>
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke1
|
||||
- spoke4
|
||||
- spoke6
|
||||
- matchExpressions:
|
||||
- key: name
|
||||
operator: In
|
||||
values:
|
||||
- spoke1
|
||||
- spoke4
|
||||
- spoke6
|
||||
ibuSpec:
|
||||
seedImageRef: # <2>
|
||||
image: quay.io/seed/image:4.17.0-rc.1
|
||||
@@ -27,10 +27,10 @@ spec:
|
||||
- name: oadp-cm
|
||||
namespace: openshift-adp
|
||||
plan: # <5>
|
||||
- actions: ["Prep", "Upgrade", "FinalizeUpgrade"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 200 # <6>
|
||||
timeout: 2400 # <7>
|
||||
- actions: ["Prep", "Upgrade", "FinalizeUpgrade"]
|
||||
rolloutStrategy:
|
||||
maxConcurrency: 200 # <6>
|
||||
timeout: 2400 # <7>
|
||||
----
|
||||
<1> Clusters to upgrade.
|
||||
<2> Target platform version, the seed image to be used, and the secret required to access the image.
|
||||
|
||||
Reference in New Issue
Block a user