Updating the control plane images
For Neutree versions with severe issues, a control plane image of the same version might be released to quickly resolve validation issues. If you have already upgraded to the affected version, first download and upload the new control plane image from the image registry or the internal file server. Then, forcibly update neutree-core and neutree-api to the latest versions according to your deployment method. Other materials can be reused without downloading them again.
Kubernetes deployment
Section titled “Kubernetes deployment”-
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"}]' -
Confirm that the update is complete:
Terminal window kubectl -n neutree rollout status deployment/neutree-core --timeout=10mkubectl -n neutree rollout status deployment/neutree-api --timeout=10m
Docker Compose deployment
Section titled “Docker Compose deployment”-
View
CONFIG FILESfor theneutree-coreproject:Terminal window docker compose ls -
Set the Compose file path in
CONFIG FILESas theCOMPOSE_FILEenvironment variable:Terminal window export COMPOSE_FILE=/absolute/path/neutree-deploy/neutree-core/docker-compose.yml -
Update
neutree-coreandneutree-api:Terminal window # If the control plane images are local images, you do not need to run the following pull command.docker compose -p neutree-core -f "$COMPOSE_FILE" pull \neutree-core neutree-apidocker compose -p neutree-core -f "$COMPOSE_FILE" up -d \--no-deps --force-recreate \neutree-core neutree-api -
Confirm that both services have returned to the
runningstate:Terminal window docker compose -p neutree-core -f "$COMPOSE_FILE" ps \neutree-core neutree-api