How to Deploy with Helm#
Use Helm to deploy Model Registry to a Kubernetes cluster. This guide will help you:
Add the Helm chart repository.
Configure the Helm chart to match your deployment needs.
Deploy and verify the microservice.
Helm simplifies Kubernetes deployments by streamlining configurations and enabling easy scaling and updates. For more details, see Helm Documentation.
Prerequisites#
Before You Begin, ensure the following:
System Requirements: Verify that your system meets the minimum requirements.
Tools Installed: Install the required tools:
Kubernetes CLI (kubectl)
Helm 3 or later
Cluster Access: Confirm that you have access to a running Kubernetes cluster with appropriate permissions.
This guide assumes basic familiarity with Kubernetes concepts, kubectl commands, and Helm charts. If you are new to these concepts, see:
Steps to Deploy#
Create directories to be used for persistent storage by the Postgres and MinIO Docker containers**
mkdir -p /opt/intel/mr/data/mr_postgres mkdir -p /opt/intel/mr/data/mr_minio useradd -u 2025 mruser chown -R mruser:mruser /opt/intel/mr/data/mr_postgres /opt/intel/mr/data/mr_minio
Note: The data in these directories will persist after the containers are removed. If you would like to subsequently start the containers with no pre-existing data, delete the contents in the directories before starting the containers.
Pull the Helm chart from Docker Hub
helm pull oci://registry-1.docker.io/intel/model-registry --version 1.0.3-helm
Unzip the file
tar xvf model-registry-1.0.3-helm.tgz
Navigate into the directory
cd model-registry
Open the
values.yaml
file and enter values for the following variables:MINIO_SECRET_KEY
POSTGRES_PASSWORD
For more information about the supported environment variables, refer to the Environment Variables documentation.
Install the helm chart
helm install modelregistry . -n apps --create-namespace
Check the status of the pods and verify the microservice is running
kubectl get pods --namespace apps
Monitor the logs for the pod associated to the
model-registry
to identify any issues and verify that it is operating successfullykubectl logs -f {{pod_name}} -n apps
Troubleshooting#
Helm Chart Not Found:
Check if the Helm repository was added:
helm repo list
Pods Not Running:
Review pod logs:
kubectl logs {{pod-name}} -n {{namespace}}
Service Unreachable:
Confirm the service configuration:
kubectl get svc -n {{namespace}}