Deployment
Requirements
Designated directory on your local filesystem for model and data files
(e.g.,
/Users/name/Documents/my-data-directory
)
Docker (with configurations below)
Docker must have access to 8GB+ of memory (set via Docker Desktop in Preferences > Resources > Advanced > Memory)
Docker must have File Sharing configured with your designated directory (specify the absolute path of this directory in Docker Desktop in Preferences > Resources > File Sharing)
A local K8s cluster (recommended setup instructions below)
Local K8s Cluster Setup (kind)
Install kind.
Create a kind configuration file that mounts the directory containing your data and models to an alias called
/ri-platform/local/
on the virtual nodes.
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- hostPath: <ABSOLUTE PATH ON LOCAL FILESYSTEM>
containerPath: /ri-platform/local
With Docker running, create the cluster:
kind create cluster --config <above config file>
Ensure your
kubectl
context is set to the cluster you created:kubectl config use-context kind
Local K8s Cluster Setup (minikube)
Install Minikube
With Docker running, create the cluster:
minikube start
Ensure your
kubectl
context is set to the cluster you created:kubectl config use-context minikube
In a separate terminal, use a 9P mount to mount the directory containing your data and models to an alias called
/ri-platform/local
on the virtual nodes.minikube mount <ABSOLUTE PATH ON LOCAL FILESYSTEM>:/ri-platform/local
This will create a long running process that must be kept alive for the mount to work properly!
Installation and Validation
After satisfying the requirements above, the installation and validation process for the Local Agent is identical to that of agents running on cloud providers.
To proceed with the installation, follow the steps in Installation for the Local Agent
option in the self-guided installation process.
Upon completion, proceed to Using the Local Agent.