Much ado about scripting, Linux & Eclipse: card subject to change

2019-06-29

Discovering containers loaded by Che 7

Second in this series... more tips for Che 7 on Minishift.

Discovering containers loaded by Che 7

Prerequisites

You need a Kubernetes or OpenShift cluster (eg., minikube or minishift), into which you have installed Che.
Follow the steps in this document to deploy Che. Steps below can be done in parallel to collect a list of containers involved in deployment.

Procedure

  1. Once you have started your cluster, you can watch events and see which images are pulled. Start this in a console window before deploying Che to your cluster.
    oc project che
    oc get po
    oc get events -w | tee /tmp/minishift.log.txt
  2. Watch for lines containing the following lines to see what containers are pulled.
    Successfully pulled image "..."
      and
    Container image "..." already present on machine
  3. For example, this should extract just a list of pulled containers, including any duplicate re-pulls:
    cat /tmp/minishift.log.txt | \
      egrep "Successfully pulled image|Container image" | \
      sed -e 's#.*\(Successfully pulled image\|Container image\) "\(.\+\)\".*#\2#g'
  4. You can also look at the available images in the minishift docker context:
    eval $(minishift docker-env)
    docker images
  5. Next, using chectldeploy Che to your cluster and watch the events get logged.
  6. You can also see container events at this URL:
    • https://192.168.YOUR.IP:8443/console/project/che/browse/events

0 comments: