Cache your organization’s custom images
Cache your organization’s custom images with Kubernetes Image Puller so that workspaces using organization-specific container images start without waiting for large image downloads.
Prerequisites
-
Your organization’s instance of Che is installed and running on Kubernetes cluster.
-
Image Puller is installed on Kubernetes cluster.
-
An active
kubectlsession with administrative permissions to the destination Kubernetes cluster. See Overview of kubectl.
Procedure
-
Configure the Image Puller to pre-pull custom images.
kubectl patch checluster/eclipse-che \ --namespace eclipse-che \ --type='merge' \ --patch '{ "spec": { "components": { "imagePuller": { "enable": true, "spec": { "images": "NAME-1=IMAGE-1;NAME-2=IMAGE-2" } } } } }'where:
images-
The semicolon-separated list of images in
name=imageformat.
Verification
-
Verify that the image puller is configured with the custom images:
kubectl get checluster eclipse-che -n eclipse-che -o jsonpath='{.spec.components.imagePuller.spec.images}'