Upgrade on Swarm¶
To upgrade to a later patch version, you must include a reference to the
values.yaml
file when running the msr-installer
image.
SSH into a manager node on the Swarm cluster in which MSR is running.
Verify that you have the
values.yaml
file that you generated to install and modify your MSR deployment.Obtain a list of the worker nodes along with their node IDs, noting the IDs of the nodes on which MSR is installed:
docker node ls --format "{{ .ID }}" --filter "role=worker"
Edit the
values.yaml
file to specify the list of worker nodes on which MSR is installed.Upgrade MSR, specifying a node ID for each node on which MSR is installed:
docker run \ --rm \ -it \ -v /var/run/docker.sock:/var/run/docker.sock \ -v <path-to-values.yml>:/config/values.yml \ registry.mirantis.com/msr/msr-installer:<new-msr-version> \ apply
Review the status of the deployed services:
docker stack services msr