Kubernetes deployment
Important: If you’re using or looking to use Opik or Comet enterprise version please reach out to Sales@comet.com to gain access to the correct deployment documentation.
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 can install Opik using the helm chart maintained by the Opik team by running the following commands:
Add Opik Helm repo
You can set VERSION to the specific Opik version or leave it as ‘latest’
You can port-forward any service you need to your local machine:
Opik will be available at http://localhost:5173
.
Configuration
You can find a full list the configuration options in the helm chart documentation.
Advanced deployment options
Configure external access
Configure ingress for opik-frontend
Configure LoadBalancer service for clickhouse
Configure Clickhouse backup on S3 (or minio)
With AWS Key and Secret key
You will need to create a secret with the credentials for the S3 bucket you want to use for backup with following values:
Add to your configuration
With IAM Role
Configure replication for Clickhouse
Important Limitation:
You must have Opik running before you enable replication for ClickHouse.
Attempting to set up replication before Opik is running may result in errors or misconfiguration.
Use S3 bucket for Opik
Using AWS key and secret keys
Use IAM Role
If your IAM role is configured for the k8s nodes, the only things you will need is to set for opik-backend:
If your role should be used by opik-backend serviceAccount, in addition you need to set:
Use external Clickhouse installation
Supported from Opik chart version 1.4.2
Configuration snippet for using external Clickhouse:
The passwords can be handled in the secret, and then you should configure it as following
Delete your installation
Before deleting opik installation with helm, make sure to remove finilizer on the clickhouse resource:
Then, uninstall the opik:
Troubleshooting
If you get this error when running helm
Please make sure you use the latest Opik helm chart version that runs zookeeper by default