Install MSR online

The procedure provided herein will guide you in your installation of MSR onto a Swarm cluster that has one manager and one worker node, with the MSR installation occurring on one worker. Be aware, though, that you can adjust the number of nodes to fit your specific needs.

Important

  • You must install MSR on an odd number of nodes.

  • Mirantis recommends that you install MSR on worker nodes only.

  1. If you have not done so, create the swarm where MSR will run.

  2. SSH into the manager node.

  3. Generate the values.yaml file that you will use to configure and deploy MSR:

    docker run -it --rm \
    --entrypoint cat registry.mirantis.com/msr/msr-installer:<msr-version> \
    /config/values.yml > values.yml
    
  4. Edit the values.yaml file to customize your MSR deployment. Be sure to place your license in the license section.

    license: '<license-string>'
    
  5. Obtain a list of non-manager nodes along with their node IDs:

    docker node ls --format "{{ .ID }}" --filter "role=worker"
    
  6. In the swarm.nodeList section of the values.yaml file, add the node IDs of the worker nodes on which you plan to install MSR:

    swarm:
      nodeList:
        - <node-id-1>
        - <node-id-2>
        - <node-id-3>
    
  7. Execute the following command to install MSR:

    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:<msr-version> \
      install \
      --https_port 8443 \
      --http_port 8888
    

    Note

    If you do not specify any worker nodes on which to install MSR, the software will exclusively be installed on the manager node where the msr-installer is executed.

  8. Review the status of the deployed services:

    docker stack services msr
    
  9. Access the MSR web UI at https://<node-ip>:443. The default user name and password are admin:password.