Skip to content

Chectl function to fetch the list of needed images and download them (performance tuning, OCP 3.11 airgap) #18378

@MichalMaler

Description

@MichalMaler

Is your enhancement related to a problem? Please describe.

Right now we have a table that should list the recommend list of images with digest for image puller to pre-pull:
https://www.eclipse.org/che/docs/che-7/administration-guide/caching-images-for-faster-workspace-start/#deploying-image-puller-using-openshift-templates_caching-images-for-faster-workspace-start

This table is almost identical to the table of images needed for an installation in restricted environments.
So, the problem is to, from the doc perspective, maintain two almost identical tables in two files that are also used in downstream, but with different images.

  1. These tables are frequently updated and their keeping up is problematic.

  2. The whole section is complex and instead of having multiple procedures about how to get those images pulled (where some are pulled by imagepuller, some have to be downloaded by skopeo), it would be better to have this "in code".
    https://www.eclipse.org/che/docs/che-7/administration-guide/caching-images-for-faster-workspace-start/

Describe the solution you'd like

I would like to request a script that would fetch the list of needed images, download them, provide the list of remaining images from which a user can pick and download, based on a user's use-case.

This script would be a new feature in chectl. It would be great if it could have two options:
a) download images for faster caching
b) download images for use in restricted environments

Describe alternatives you've considered

Doc alternative:

  1. Reduce Table 3. List of recommended images to pre-pull to list ONLY the 2 brokers and Che-Theia.
  1. add a section about curling the whole list of images (with a note that some might not be pullable this way, like machine-exec)

  2. Add a note that if the image puller can't pull images and keep them alive (no sleep command, etc.), then the backup process is to simply use skopeo copy --all to mirror images into your cluster's image registry; this is ALSO how to do airgap setup for OCP 3.11, so might be able to reuse content/link to other section

Additional context

https://issues.redhat.com/browse/RHDEVDOCS-2289

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/chectlIssues related to chectl, the CLI of Chekind/enhancementA feature request - must adhere to the feature request template.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.severity/P2Has a minor but important impact to the usage or development of the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions