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 kubectl session with administrative permissions to the destination Kubernetes cluster. See Overview of kubectl.

Procedure
  1. Create k8s-image-puller namespace:

    kubectl create namespace k8s-image-puller
  2. Create KubernetesImagePuller Custom 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__"
    EOF

    where:

    images

    The semicolon-separated list of images in name=image format.

Verification
  • Verify that the image puller DaemonSet is running in the k8s-image-puller namespace:

    kubectl get daemonset -n k8s-image-puller