Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
MCCUpgrade resource¶
This section describes the MCCUpgrade resource used in
MOSK to configure a schedule for the management cluster
update.
The MCCUpgrade CR contains the following fields:
apiVersionAPI version of the object that is
kaas.mirantis.com/v1alpha1.
kindObject type that is
MCCUpgrade.
metadataThe
metadataobject field of theMCCUpgraderesource contains the following fields:nameThe name of
MCCUpgradeobject, must bemcc-upgrade.
specThe
specobject field of theMCCUpgraderesource contains the schedule when management cluster update is allowed or blocked. This field contains the following fields:blockUntilDeprecated since Container Cloud 2.28.0 (Cluster release 16.3.0). Use
autoDelayinstead.Time stamp in the ISO 8601 format, for example,
2021-12-31T12:30:00-05:00. Updates will be disabled until this time. You cannot set this field to more than 7 days in the future and more than 30 days after the latestKaaSRelease.
autoDelayAvailable since Container Cloud 2.28.0 (Cluster release 16.3.0).
Flag that enables delay of the management cluster auto-update to a new
KaaSReleaserelease and ensures that auto-update is not started immediately on the release date. Boolean,falseby default.The delay period is minimum 20 days for each newly discovered release and depends on specifics of each release cycle and on optional configuration of week days and hours selected for update. You can verify the exact date of a scheduled auto-update in the
statussection of theMCCUpgradeobject.Note
Modifying the delay period is not supported.
timeZoneName of a time zone in the IANA Time Zone Database. This time zone will be used for all schedule calculations. For example:
Europe/Samara,CET,America/Los_Angeles.
scheduleList of schedule items that allow an update at specific hours or weekdays. The update process can proceed if at least one of these items allows it. Schedule items allow update when both
hoursandweekdaysconditions are met. When this list is empty or absent, update is allowed at any hour of any day. Every schedule item contains the following fields:hoursObject with 2 fields:
fromandto. Both must be non-negative integers not greater than 24. Thetofield must be greater than thefromone. Update is allowed if the current hour in the time zone specified bytimeZoneis greater or equals tofromand is less thanto. Ifhoursis absent, update is allowed at any hour.
weekdaysObject with boolean fields with these names:
mondaytuesdaywednesdaythursdayfridaysaturdaysunday
Update is allowed only on weekdays that have the corresponding field set to
true. If all fields arefalseor absent, orweekdaysis empty or absent, update is allowed on all weekdays.
Full
specexample:spec: autoDelay: true timeZone: CET schedule: - hours: from: 10 to: 17 weekdays: monday: true tuesday: true - hours: from: 7 to: 10 weekdays: monday: true friday: true
In this example, all schedule calculations are done in the CET timezone and upgrades are allowed only:
From 7:00 to 17:00 on Mondays
From 10:00 to 17:00 on Tuesdays
From 7:00 to 10:00 on Fridays
statusThe
statusobject field of theMCCUpgraderesource contains information about the next planned management cluster update, if available. This field contains the following fields:nextAttemptDeprecated since 2.28.0 (Cluster release 16.3.0)Time stamp in the ISO 8601 format indicating the time when the Release Controller will attempt to discover and install a new
KaaSReleaserelease. Set to the next allowed time according to the schedule configured inspecor one minute in the future if the schedule currently allows update.
messageDeprecated since 2.28.0 (Cluster release 16.3.0)Message from the last update step or attempt.
nextReleaseObject describing the next release that the management cluster will be updated to. Absent if no new releases have been discovered. Contains the following fields:
versionSemver-compatible version of the next
KaaSReleaserelease, for example,2.22.0.
dateTime stamp in the ISO 8601 format of the
KaaSReleaserelease defined inversion:Since 2.28.0 (Cluster release 16.3.0), the field indicates the publish time stamp of a new release.
Before 2.28.0 (Cluster release 16.2.x or earlier), the field indicates the discovery time stamp of a new release.
scheduledAvailable since Container Cloud 2.28.0 (Cluster release 16.3.0). Time window that the pending
KaaSReleaseupdate is scheduled for:startTimeTime stamp in the ISO 8601 format indicating the start time of the update for the pending
KaaSRelease.
endTimeTime stamp in the ISO 8601 format indicating the end time of the update for the pending
KaaSRelease.
lastUpgradeTime stamps of the latest MOSK management update:
startedAtTime stamp in the ISO 8601 format indicating the time when the last MOSK management update started.
finishedAtTime stamp in the ISO 8601 format indicating the time when the last MOSK management update finished.
conditionsAvailable since Container Cloud 2.28.0 (Cluster release 16.3.0). List of status conditions describing the status of the
MCCUpgraderesource. Each condition has the following format:typeCondition type representing a particular aspect of the
MCCUpgradeobject. Currently, the only supported condition type isReadythat defines readiness to process a new release.If the
statusfield of theReadycondition type isFalse, the Release Controller blocks the start of update operations.
statusCondition status. Possible values:
True,False,Unknown.
reasonMachine-readable explanation of the condition.
lastTransitionTimeTime of the latest condition transition.
messageHuman-readable description of the condition.
Example of MCCUpgrade status:
status:
conditions:
- lastTransitionTime: "2024-09-16T13:22:27Z"
message: New release scheduled for upgrade
reason: ReleaseScheduled
status: "True"
type: Ready
lastUpgrade: {}
message: ''
nextAttempt: "2024-09-16T13:23:27Z"
nextRelease:
date: "2024-08-25T21:05:46Z"
scheduled:
endTime: "2024-09-17T00:00:00Z"
startTime: "2024-09-16T00:00:00Z"
version: 2.28.0