Skip to main content

Production ready Kubernetes deployment

For production deployments, we recommend using our Kubernetes Helm chart. This chart is designed to be highly configurable and has been battle-tested in Comet's managed cloud offering.

Prerequisites

In order to install Opik on a Kubernetes cluster, you will need to have the following tools installed:

Installation

You will then be able to to install Opik using the helm chart defined in the deployment/helm_chart/opik directory of the Opik repository:

# Navigate to the directory
cd deployment/helm_chart/opik

# Define the version of the Opik server you want to install
VERSION=latest

# Add helm dependencies
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build

# Install Opik
helm upgrade --install opik -n llm --create-namespace -f values.yaml \
--set registry=docker.dev.comet.com/comet-ml \
--set component.backend.image.tag=$VERSION --set component.frontend.image.tag=$VERSION-os \
--set component.backend.env.ANALYTICS_DB_MIGRATIONS_PASS=opik --set component.backend.env.ANALYTICS_DB_PASS=opik \
--set component.backend.env.STATE_DB_PASS=opik .

To access the Opik UI, you will need to port-forward the frontend service:

kubectl port-forward -n llm svc/opik-frontend 5173

You can now open the Opik UI at http://localhost:5173/llm.

Configuration

You can find a full list the configuration options in the helm chart documentation.