mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
:_mod-docs-content-type: SNIPPET
|
|
|
|
[source,yaml]
|
|
----
|
|
apiVersion: lcm.openshift.io/v1alpha1
|
|
kind: ImageBasedGroupUpgrade
|
|
metadata:
|
|
name: <filename>
|
|
namespace: default
|
|
spec:
|
|
clusterLabelSelectors: # <1>
|
|
- matchExpressions:
|
|
- key: name
|
|
operator: In
|
|
values:
|
|
- spoke1
|
|
- spoke4
|
|
- spoke6
|
|
ibuSpec:
|
|
seedImageRef: # <2>
|
|
image: quay.io/seed/image:4.21.0
|
|
version: 4.21.0
|
|
pullSecretRef:
|
|
name: "<seed_pull_secret>"
|
|
extraManifests: # <3>
|
|
- name: example-extra-manifests
|
|
namespace: openshift-lifecycle-agent
|
|
oadpContent: # <4>
|
|
- name: oadp-cm
|
|
namespace: openshift-adp
|
|
plan: # <5>
|
|
- 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.
|
|
+
|
|
[NOTE]
|
|
====
|
|
If you add the seed image pull secret in the hub cluster, in the same namespace as the `ImageBasedGroupUpgrade` resource, the secret is added to the manifest list for the `Prep` stage. The secret is recreated in each spoke cluster in the `openshift-lifecycle-agent` namespace.
|
|
====
|
|
+
|
|
<3> Optional: Applies additional manifests, which are not in the seed image, to the target cluster. Also applies `ConfigMap` objects for custom catalog sources.
|
|
<4> `ConfigMap` resources that contain the OADP `Backup` and `Restore` CRs.
|
|
<5> Upgrade plan details.
|
|
<6> Number of clusters to update in a batch.
|
|
<7> Timeout limit to complete the action in minutes. |