Install MSR online

Use a Helm chart to install MSR onto any Kubernetes distribution that supports persistent storage.

Prerequisites

  1. Install and configure your Kubernetes platform.

  2. Configure a default StorageClass on your cluster that supports the dynamic provisioning of persistent volumes.

    The StorageClass must support the provisioning of ReadWriteOnce volumes. If you intend to use the registry.storage.backend=persistentVolume setting, StorageClass must also support the provisioning of ReadWriteMany volumes.

  3. Install cert-manager on your cluster:

    kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.7.2/cert-manager.yaml
    kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.7.2/cert-manager.crds.yaml
    
  4. Install Postgres Operator on your cluster, including spilo_* parameters:

    helm repo add postgres-operator https://opensource.zalando.com/postgres-operator/charts/postgres-operator/
    helm repo up
    helm install postgres-operator postgres-operator/postgres-operator \
      --version <postgres-operator-version-number> \
      --set configKubernetes.spilo_runasuser=101 \
      --set configKubernetes.spilo_runasgroup=103 \
      --set configKubernetes.spilo_fsgroup=103
    

Note

By default, MSR uses the persistent volume claims detailed in the Volumes.

To pre-provision the repository metadata and vulnerability scan volumes, create persistent volume claims with the correct names prior to installing MSR. To pre-provision the image data volume, set the Helm chart parameter storage.persistentVolume.existingClaim to the name of the persistent volume claim.

Install MSR

  1. Use a Helm chart to install MSR:

    helm install msr msr \
    --repo https://registry.mirantis.com/charts/msr/msr \
    --version 1.0.0 \
    --set-file license=path/to/file/license.lic
    
  2. Verify the success of your MSR installation:

    • Log in to the MSR web UI, or

    • Confirm that all msr-* pods are in a running state

    Note

    The default credentials for MSR are:

    • User name: admin

    • password: password

    Be aware that the Helm chart values also include the default MSR credentials information.

    Mirantis strongly recommends that you change the credentials from the defaults as soon as possible following installation.