Skip to content
Neutree Documentation

Updating the control plane images

A new build of the Neutree control plane images has been released. If you have already upgraded Neutree to version 1.2.0, first download the new control plane images from the internal file server and upload them, and then force an update of neutree-core and neutree-api to the latest version according to your deployment mode. The other artifacts can still be reused and do not need to be downloaded again.

  1. Trigger Kubernetes to pull the latest images again:

    Terminal window
    kubectl -n neutree patch deployment neutree-core neutree-api --type=json \
    -p='[{"op":"replace","path":"/spec/template/spec/containers/0/imagePullPolicy","value":"Always"}]'
  2. Confirm that the update is complete:

    Terminal window
    kubectl -n neutree rollout status deployment/neutree-core --timeout=10m
    kubectl -n neutree rollout status deployment/neutree-api --timeout=10m
  1. View the CONFIG FILES of the neutree-core project:

    Terminal window
    docker compose ls
  2. Set the Compose file path in CONFIG FILES as the COMPOSE_FILE environment variable:

    Terminal window
    export COMPOSE_FILE=/absolute/path/neutree-deploy/neutree-core/docker-compose.yml
  3. Update neutree-core and neutree-api:

    Terminal window
    docker compose -p neutree-core -f "$COMPOSE_FILE" pull \
    neutree-core neutree-api
    docker compose -p neutree-core -f "$COMPOSE_FILE" up -d \
    --no-deps --force-recreate \
    neutree-core neutree-api
  4. Confirm that the status of both services has returned to running:

    Terminal window
    docker compose -p neutree-core -f "$COMPOSE_FILE" ps \
    neutree-core neutree-api