TechPreview Available since 2.24.0 and 23.2 for MOSK clusters
This section describes the
CacheWarmupRequest custom resource (CR) used in
the Container Cloud API to predownload images and store them in the
The Container Cloud
CacheWarmupRequest CR contains the following fields:
API version of the object that is
Object type that is
metadataobject field of the
CacheWarmupRequestresource contains the following fields:
Name of the
CacheWarmupRequestobject that must match the existing management or regional cluster name to which the warm-up operation applies.
Container Cloud project in which the cluster is created. Always set to
defaultas the only available project for management and regional clusters creation.
specobject field of the
CacheWarmupRequestresource contains the settings for artifacts fetching and artifacts filtering through Cluster releases. This field contains the following fields:
Array of strings. Defines a set of Cluster release names to warm up in the
Optional. Array of strings. Defines a set of OpenStack releases to warm up in
mcc-cache. Applicable only if
If you plan to upgrade an OpenStack version, define the current and the target versions including the intermediate versions, if any. For example, to upgrade OpenStack from Victoria to Yoga:
openstackReleases: - victoria - wallaby - xena - yoga
Optional. String. Time for a single request to download a single artifact. Defaults to
30m. For example,
Optional. Integer. Number of clients to use for fetching artifacts per each
mcc-cacheservice endpoint. Defaults to
Optional. Boolean. Enables fetching of the OpenStack-related artifacts for MOSK. Defaults to
false. Applicable only if the
moskreleases. Useful when you need to upgrade only an OpenStack version on MOSK-based clusters.
apiVersion: kaas.mirantis.com/v1alpha1 kind: CacheWarmupRequest metadata: name: example-cluster-name namespace: default spec: clusterReleases: - mke-14-0-1 - mosk-15-0-1 openstackReleases: - yoga fetchRequestTimeout: 30m clientsPerEndpoint: 2 openstackOnly: false
In this example:
CacheWarmupRequestobject is created for a management or regional cluster named
CacheWarmupRequestobject is created in the only allowed
defaultContainer Cloud project.
Two Cluster releases
mke-14-0-1will be predownloaded.
mosk-15-0-1, only images related to the OpenStack version
Yogawill be predownloaded.
Maximum time-out for a single request to download a single artifact is 30 minutes.
Two parallel workers will fetch artifacts per each
All artifacts will be fetched, not only those related to OpenStack.