Installing Image Puller on Kubernetes using the Operator

This procedure describes how to install the Image Puller on Kubernetes using the Operator. This is the recommended installation method.

Procedure
  1. Create a <kubernetes-image-puller> namespace to host the Image Puller:

    kubectl create namespace <kubernetes-image-puller>
  2. Apply the Image Puller manifests on the namespace:

    export NAMESPACE=<kubernetes-image-puller>
    kubectl  apply -f https://raw.githubusercontent.com/che-incubator/kubernetes-image-puller-operator/master/deploy/crds/che.eclipse.org_kubernetesimagepullers_crd.yaml -n $NAMESPACE
    kubectl  apply -f https://raw.githubusercontent.com/che-incubator/kubernetes-image-puller-operator/master/deploy/role.yaml -n $NAMESPACE
    kubectl  apply -f https://raw.githubusercontent.com/che-incubator/kubernetes-image-puller-operator/master/deploy/role_binding.yaml -n $NAMESPACE
    kubectl  apply -f https://raw.githubusercontent.com/che-incubator/kubernetes-image-puller-operator/master/deploy/service_account.yaml -n $NAMESPACE
    kubectl  apply -f https://raw.githubusercontent.com/che-incubator/kubernetes-image-puller-operator/master/deploy/operator.yaml -n $NAMESPACE
  3. Create a KubernetesImagePuller Custom Resource:

    apiVersion: che.eclipse.org/v1alpha1
    kind: KubernetesImagePuller
    metadata:
      name: kubernetes-image-puller
      namespace: kubernetes-image-puller
    spec:
      configMapName: kubernetes-image-puller
      daemonsetName: kubernetes-image-puller
      deploymentName: kubernetes-image-puller
      images: java11-maven=quay.io/eclipse/che-java11-maven:nightly;che-theia=quay.io/eclipse/che-theia:next;java-plugin-runner=eclipse/che-remote-plugin-runner-java8:latest;