Skip to content

Preparing for a Run:AI OpenShift Installation

The following section provides IT with the information needed to prepare for a Run:AI installation. This includes Third-party dependencies which must be met as well as access control that must be granted for Run:AI components.

Create OpenShift Projects

Run:AI uses two projects. One for the backend (runai-backend) and one for the cluster itself (runai). The project gpu-operator-resources is used by the GPU Opeator dependency described above.

oc new-project runai
oc new-project runai-backend
oc new-project gpu-operator-resources

Prepare Installation Artifacts

Run:AI Software Files

SSH into a node with kubectl access to the cluster and Docker installed.

To extract Run:AI files, replace <VERSION> in the command below and run:

tar xvf runai-<version>.tar.gz
cd deploy

Install the Run:AI Administrator Command-line Interface by following the steps here.

Run:AI Images

Upload images to Docker Registry. Set the Docker Registry address in the form of NAME:PORT (do not add https):

export REGISTRY_URL=<Docker Registry address>

Run the following script (you must have at least 20GB of free disk space to run):

sudo -E ./prepare_installation.sh

(If docker is configured to run as non-root then sudo is not required).

Run the following to enable image download from the Run:AI Container Registry on Google cloud:

kubectl apply -f runai-gcr-secret.yaml
kubectl patch serviceaccount default -n runai-backend \
    -p '{"imagePullSecrets": [{"name": "gcr-secret"}]}'

Mark Run:AI System Workers

The Run:AI Backend should be installed on a set of dedicated Run:AI system worker nodes rather than GPU worker nodes. To set system worker nodes run:

kubectl label node <NODE-NAME> node-role.kubernetes.io/runai-system=true

Currently, this setting cannot be changed after the backend is installed.

Install Helm

If helm v3 does not yet exist on the machine, install it now:

tar xvf helm-<version>-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/

See https://helm.sh/docs/intro/install/ on how to install Helm. Run:AI works with Helm version 3 only (not helm 2).

Additional Permissions

As part of the installation you will be required to install the Backend and Cluster Helm Charts. The Helm Charts require Kubernetes administrator permissions. You can review the exact permissions provided by using the --dry-run on both helm charts.

Next Steps

Continue with installing the Run:AI third-party dependencies.


Last update: August 23, 2021