Cluster Install
This article explains the steps required to install the Run:ai cluster on a Kubernetes cluster using Helm.
Before installation¶
There are a number of matters to consider prior to installing using Helm.
System and network requirements¶
Before installing the Run:ai cluster, validate that the system requirements and network requirements are met.
Once all the requirements are met, it is highly recommend to use the Run:ai cluster preinstall diagnostics tool to:
- Test the below requirements in addition to failure points related to Kubernetes, NVIDIA, storage, and networking
- Look at additional components installed and analyze their relevance to a successful installation
To run the preinstall diagnostics tool, download the latest version, and run:
- On EKS deployments, run
aws configure
prior to execution
In an air-gapped deployment, the diagnostics image is saved, pushed, and pulled manually from the organization's registry.
#Save the image locally
docker save --output preinstall-diagnostics.tar gcr.io/run-ai-lab/preinstall-diagnostics:${VERSION}
#Load the image to the organization's registry
docker load --input preinstall-diagnostics.tar
docker tag gcr.io/run-ai-lab/preinstall-diagnostics:${VERSION} ${CLIENT_IMAGE_AND_TAG}
docker push ${CLIENT_IMAGE_AND_TAG}
Run the binary with the --image
parameter to modify the diagnostics image to be used:
For more information see preinstall diagnostics.
Helm¶
Run:ai cluster requires Helm 3.14 or above. To install Helm, see Helm Install.
Permissions¶
A Kubernetes user with the cluster-admin
role is required to ensure a successful installation, for more information see Using RBAC authorization.
Run:ai namespace¶
Run:ai cluster must be installed in a namespace named runai
. Create the namespace by running:
TLS certificates¶
A TLS private and public keys are required for HTTP access to the cluster. Create a Kubernetes Secret named runai-cluster-domain-tls-secret
in the runai
namespace with the cluster’s Fully Qualified Domain Name (FQDN) private and public keys, by running the following:
kubectl create secret tls runai-cluster-domain-tls-secret -n runai \
--cert /path/to/fullchain.pem \ # Replace /path/to/fullchain.pem with the actual path to your TLS certificate
--key /path/to/private.pem # Replace /path/to/private.pem with the actual path to your private key
Installation¶
Follow these instructions to install using Helm.
Adding a new cluster¶
Follow the steps below to add a new cluster.
Note
When adding a cluster for the first time, the New Cluster form automatically opens when you log-in to the Run:ai platform. Other actions are prevented, until the cluster is created.
If this is your first cluster and you have completed the New Cluster form, start at step 3. Otherwise, start at step 1.
- In the Run:ai platform, go to Clusters
- Click +NEW CLUSTER
- Enter a unique name for your cluster
- Optional: Chose the Run:ai cluster version (latest, by default)
- Enter the Cluster URL . For more information see Domain Name Requirement
- Click Continue
Installing Run:ai cluster¶
In the next Section, the Run:ai cluster installation steps will be presented.
- Follow the installation instructions and run the commands provided on your Kubernetes cluster.
- Click DONE
The cluster is displayed in the table with the status Waiting to connect, once installation is complete, the cluster status changes to Connected
Note
To customize the installation based on your environment, see Customize cluster installation.
Troubleshooting¶
If you encounter an issue with the installation, try the troubleshooting scenario below.
Installation¶
If the Run:ai cluster installation failed, check the installation logs to identify the issue. Run the following script to print the installation logs:
curl -fsSL https://raw.githubusercontent.com/run-ai/public/main/installation/get-installation-logs.sh
Cluster status¶
If the Run:ai cluster installation completed, but the cluster status did not change its status to Connected, check the cluster troubleshooting scenarios