# Control Plane System Requirements

The NVIDIA Run:ai control plane is a Kubernetes application. This section explains the required hardware and software system requirements for the NVIDIA Run:ai control plane. Before you start, make sure to review the [Installation overview](https://run-ai-docs.nvidia.com/self-hosted/2.22/getting-started/installation).

## Installer Machine

The machine running the installation script (typically the Kubernetes master) must have:

* At least 50GB of free space
* Docker installed
* [Helm](https://helm.sh/) 3.14 or later

{% hint style="info" %}
**Note**

If you are installing an air-gapped version of NVIDIA Run:ai, the NVIDIA Run:ai [software artifacts](https://run-ai-docs.nvidia.com/self-hosted/2.22/getting-started/installation/preparations#software-artifacts) include the Helm binary.
{% endhint %}

## Hardware Requirements

The following hardware requirements are for the control plane system nodes. By default, all NVIDIA Run:ai control plane services run on all available nodes.

### Architecture

* **x86** - Supported for both Kubernetes and OpenShift deployments.
* **ARM** - Supported for Kubernetes only. ARM is currently not supported for OpenShift.

### NVIDIA Run:ai Control Plane - System Nodes

This configuration is the minimum requirement you need to install and use NVIDIA Run:ai control plane:

| Component  | Required Capacity |
| ---------- | ----------------- |
| CPU        | 10 cores          |
| Memory     | 12GB              |
| Disk space | 110GB             |

{% hint style="info" %}
**Note**

To designate nodes to NVIDIA Run:ai system services, follow the instructions as described in [System nodes](https://run-ai-docs.nvidia.com/self-hosted/2.22/infrastructure-setup/advanced-setup/node-roles#system-nodes).
{% endhint %}

If NVIDIA Run:ai control plane is planned to be installed on the same Kubernetes cluster as the NVIDIA Run:ai cluster, make sure the cluster [Hardware requirements](https://run-ai-docs.nvidia.com/self-hosted/2.22/getting-started/installation/system-requirements#hardware-requirements) are considered in addition to the NVIDIA Run:ai control plane hardware requirements.

## Software Requirements

The following software requirements must be fulfilled.

### Operating System

* Any **Linux** operating system supported by both Kubernetes and NVIDIA GPU Operator
* Internal tests are being performed on **Ubuntu 22.04** and **CoreOS** for OpenShift.

### Network Time Protocol

Nodes are required to be synchronized by time using NTP (Network Time Protocol) for proper system functionality.

### Kubernetes Distribution

NVIDIA Run:ai control plane requires Kubernetes. The following Kubernetes distributions are supported:

* Vanilla Kubernetes
* OpenShift Container Platform (OCP)
* NVIDIA Base Command Manager (BCM)
* Elastic Kubernetes Engine (EKS)
* Google Kubernetes Engine (GKE)
* Azure Kubernetes Service (AKS)
* Oracle Kubernetes Engine (OKE)
* Rancher Kubernetes Engine (RKE1)
* Rancher Kubernetes Engine 2 (RKE2)

{% hint style="info" %}
**Note**

The latest release of the NVIDIA Run:ai control plane supports **Kubernetes 1.31 to 1.33** and **OpenShift 4.15 to 4.19**.
{% endhint %}

See the following Kubernetes version support matrix for the latest NVIDIA Run:ai releases:

| NVIDIA Run:ai version | Supported Kubernetes versions | Supported OpenShift versions |
| --------------------- | ----------------------------- | ---------------------------- |
| v2.17                 | 1.27 to 1.29                  | 4.12 to 4.15                 |
| v2.18                 | 1.28 to 1.30                  | 4.12 to 4.16                 |
| v2.19                 | 1.28 to 1.31                  | 4.12 to 4.17                 |
| v2.20                 | 1.29 to 1.32                  | 4.14 to 4.17                 |
| v2.21                 | 1.30 to 1.32                  | 4.14 to 4.18                 |
| v2.22 (latest)        | 1.31 to 1.33                  | 4.15 to 4.19                 |

For information on supported versions of managed Kubernetes, it's important to consult the release notes provided by your Kubernetes service provider. There, you can confirm the specific version of the underlying Kubernetes platform supported by the provider, ensuring compatibility with NVIDIA Run:ai. For an up-to-date end-of-life statement see [Kubernetes Release History](https://kubernetes.io/releases/) or [OpenShift Container Platform Life Cycle Policy](https://access.redhat.com/support/policy/updates/openshift).

### NVIDIA Run:ai Namespace

The NVIDIA Run:ai control plane uses a namespace or project (OpenShift) called `runai-backend`. Use the following to create the namespace/project:

{% tabs %}
{% tab title="Kubernetes" %}

<pre class="language-bash"><code class="lang-bash"><strong>kubectl create namespace runai-backend
</strong></code></pre>

{% endtab %}

{% tab title="OpenShift" %}

```bash
oc new-project runai-backend
```

{% endtab %}
{% endtabs %}

### Default Storage Class

{% hint style="info" %}
**Note**

Default storage class applies for Kubernetes only.
{% endhint %}

The NVIDIA Run:ai control plane requires a **default storage class** to create persistent volume claims for NVIDIA Run:ai storage. The storage class, as per Kubernetes standards, controls the reclaim behavior, whether the NVIDIA Run:ai persistent data is saved or deleted when the NVIDIA Run:ai control plane is deleted.

{% hint style="info" %}
**Note**

For a simple (non-production) storage class example see [Kubernetes Local Storage Class](https://kubernetes.io/docs/concepts/storage/storage-classes/#local). The storage class will set the directory `/opt/local-path-provisioner` to be used across all nodes as the path for provisioning persistent volumes. Then set the new storage class as default:

```bash
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
```

{% endhint %}

### Kubernetes Ingress Controller

{% hint style="info" %}
**Note**

Installing ingress controller applies for Kubernetes only.
{% endhint %}

The NVIDIA Run:ai control plane requires [Kubernetes Ingress Controller](https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/) to be installed.

* OpenShift, RKE and RKE2 come with a pre-installed ingress controller.
* Internal tests are being performed on NGINX, Rancher NGINX, OpenShift Router, and Istio.
* Make sure that a default ingress controller is set.

There are many ways to install and configure different ingress controllers. The following shows a simple example to install and configure NGINX ingress controller using [helm](https://helm.sh/):

<details>

<summary>Vanilla Kubernetes</summary>

Run the following commands:

* For cloud deployments, both the **internal IP** and **external IP** are required.
* For on-prem deployments, only the **external IP** is needed.

```bash
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm upgrade -i nginx-ingress ingress-nginx/ingress-nginx \
    --namespace nginx-ingress --create-namespace \
    --set controller.kind=DaemonSet \
    --set controller.service.externalIPs="{<INTERNAL-IP>,<EXTERNAL-IP>}" # Replace <INTERNAL-IP> and <EXTERNAL-IP> with the internal and external IP addresses of one of the nodes
```

</details>

<details>

<summary>Managed Kubernetes (EKS, GKE, AKS)</summary>

Run the following commands:

```bash
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install nginx-ingress ingress-nginx/ingress-nginx \
    --namespace nginx-ingress --create-namespace
```

</details>

<details>

<summary>Oracle Kubernetes Engine (OKE)</summary>

Run the following commands:

```bash
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install nginx-ingress ingress-nginx/ingress-nginx \
    --namespace ingress-nginx --create-namespace \
    --set controller.service.annotations.oci.oraclecloud.com/load-balancer-type=nlb \
    --set controller.service.annotations.oci-network-load-balancer.oraclecloud.com/is-preserve-source=True \
    --set controller.service.annotations.oci-network-load-balancer.oraclecloud.com/security-list-management-mode=None \
    --set controller.service.externalTrafficPolicy=Local \
    --set controller.service.annotations.oci-network-load-balancer.oraclecloud.com/subnet=<SUBNET-ID> # Replace <SUBNET-ID> with the subnet ID of one of your cluster
```

</details>

## Fully Qualified Domain Name (FQDN)

{% hint style="info" %}
**Note**

Fully Qualified Domain Name applies for Kubernetes only.
{% endhint %}

You must have a Fully Qualified Domain Name (FQDN) to install the NVIDIA Run:ai control plane (ex: `runai.mycorp.local`). This cannot be an IP. The FQDN must be resolvable within the organization's private network.

## TLS Certificate

### Kubernetes

You must have a TLS certificate that is associated with the FQDN for HTTPS access. Create a [Kubernetes Secret](https://kubernetes.io/docs/concepts/configuration/secret/) named `runai-backend-tls` in the `runai-backend` namespace and include the path to the TLS `--cert` and its corresponding private `--key` by running the following:

```bash
kubectl create secret tls runai-backend-tls -n runai-backend \
  --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
```

### OpenShift

NVIDIA Run:ai uses the OpenShift default Ingress router for serving. The TLS certificate configured for this router must be issued by a trusted CA. For more details, see the OpenShift documentation on [configuring certificates](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/security_and_compliance/configuring-certificates#replacing-default-ingress).

## Local Certificate Authority

A local certificate authority serves as the root certificate for organizations that cannot use **publicly trusted certificate authority**. Follow the below steps to configure the local certificate authority.

In air-gapped environments, you **must** configure and install the local CA's public key in the Kubernetes cluster. This is required for the installation to succeed:

1. Add the public key to the `runai-backend` namespace:

{% tabs %}
{% tab title="Kubernetes" %}

```bash
kubectl -n runai-backend create secret generic runai-ca-cert \ 
    --from-file=runai-ca.pem=<ca_bundle_path>
```

{% endtab %}

{% tab title="OpenShift" %}

```bash
oc -n runai-backend create secret generic runai-ca-cert \ 
    --from-file=runai-ca.pem=<ca_bundle_path>
```

{% endtab %}
{% endtabs %}

2. When installing the control plane, make sure the following flag is added to the helm command `--set global.customCA.enabled=true`. See [Install control plane](https://run-ai-docs.nvidia.com/self-hosted/2.22/getting-started/installation/install-using-helm/install-control-plane).

## External Postgres Database (Optional)

The NVIDIA Run:ai control plane installation includes a default PostgreSQL database. However, you may opt to use an existing PostgreSQL database if you have specific requirements or preferences as detailed in [External Postgres database configuration](https://run-ai-docs.nvidia.com/self-hosted/2.22/getting-started/installation/preparations#external-postgres-database-optional). Note that only PostgreSQL version 16 is supported.
