Cache additional images for faster starts
Cache additional images with Kubernetes Image Puller to reduce workspace startup time by ensuring that required images are already cached on each node.
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
-
Create
k8s-image-pullernamespace:kubectl create namespace k8s-image-puller -
Create
KubernetesImagePullerCustom Resource:kubectl apply -f - <<EOF apiVersion: che.eclipse.org/v1alpha1 kind: KubernetesImagePuller metadata: name: k8s-image-puller-images namespace: k8s-image-puller spec: images: "__NAME-1__=__IMAGE-1__;__NAME-2__=__IMAGE-2__" EOFwhere:
images-
The semicolon-separated list of images in
name=imageformat.
Verification
-
Verify that the image puller
DaemonSetis running in thek8s-image-pullernamespace:kubectl get daemonset -n k8s-image-puller