4.1 Installation
Data Context Hub runs on Kubernetes and is deployed with a Helm chart. The chart ships every component and service it needs, including PostgreSQL and Neo4j, so no external services are required. For production, you can use your own instances of some services instead (see External services).
We recommend Argo CD as a continuous delivery solution for managing Kubernetes applications.
Prepare the cluster
The C64 Stack Deployments repository describes how to prepare a cluster on Azure or on-premises, including the ingress controller and cert-manager. The chart expects:
- Kubernetes 1.30 or newer.
- An ingress controller. The chart uses the ingress class
nginx-f5by default (the NGINX Ingress Controller). SetingressClassNameto use another one; for any other class the chart writes the annotations of the community ingress-nginx controller. - cert-manager with a ClusterIssuer named
letsencrypt-prod. The certificate is stored in the secrettls-secret. - DNS entries for your domain (
fqdn) and forneo4j.<fqdn>andotlp.<fqdn>, all covered by the certificate.
Transfer the images
Docker images are available on our registry and can be pulled from there. However, we recommend that you transfer the images to your own registry, as we do not guarantee high availability of our registry.
You can get all available images with this command:
curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.c64.ai/api/v4/projects/4/registry/repositories" | jq
Configure the deployment
Create your own values.yaml and set the values your installation needs. The chart's own values.yaml describes every value in its comments. The chart does not install until these values are set:
fqdn: the domain Data Context Hub is served on.pullSecret: the credentials for pulling the images. Alternatively, reference your own pull secrets inimagePullSecrets.- The passwords of the services:
postgres.password,keycloak.password,keycloak.default_password(the initial password of the default DCH user),rabbitmq.password,airflow.password,neo4j.passwordandopensearch_node.password.
Further settings are described in Configuration.
Versions of third-party services
The values.yaml includes the versions of the third-party services Data Context Hub was tested with. While we do not expect any problems with different minor or patch versions, we highly recommend using the provided versions.
Storage
Data Context Hub needs persistent volumes for:
- Airflow
- PostgreSQL
- Neo4j (data and logs)
- Weaviate
- OpenSearch
By default, the chart creates Persistent Volume Claims. Set the storage class and size of each in <service>.persistence.storageClassName and <service>.persistence.storage. Airflow needs a storage class with ReadWriteMany access. Since OpenSearch quickly takes up a lot of space, its volume is disabled by default; enable it with opensearch_node.persistence.enabled: true.
Alternatively, you can use local persistent volumes on one node:
- Set
environment.storage.create_local_storage_pv: trueand the node inenvironment.storage.local_storage_node_affinity_hostname. - Set
<service>.persistence.storageClassName: local-storage, and adapt theenvironment.storage.pv_path_*paths. - Create the directories with sufficient permissions before the first start, or let the chart create them: set
environment.storage.create_local_storage_dirs: trueand place all paths belowenvironment.storage.local_storage_root.
The size, storage class and access mode of a volume cannot be changed after installation.
Install
Add the Data Context Hub Helm repository and install the chart with your values.yaml:
helm repo add dch-stable https://gitlab.c64.ai/api/v4/projects/4/packages/helm/stable --username __token__ --password <token>
helm repo update
helm install datacontexthub dch-stable/dch --namespace <namespace> -f values.yaml
External services
You can replace some of the shipped services with your own instances. Each has an enabled value; set it to false and point the connection values at your instance. This applies to PostgreSQL and Neo4j, described below, and also to Keycloak, RabbitMQ, Weaviate and the OpenTelemetry collector. Check values.yaml for the versions Data Context Hub was tested with.
PostgreSQL
To use an existing PostgreSQL instance (for example on a bare metal server or AWS Aurora), set postgres.enabled: false and adapt:
postgres.hostpostgres.portpostgres.userpostgres.password
The airflow and keycloak databases must exist before the first start. Data Context Hub creates its other databases itself, provided the database user is allowed to.
| Database | Configuration | Notes |
|---|---|---|
| airflow | airflow.database | Create beforehand |
| keycloak | keycloak.database | Create beforehand |
| dch_cont | environment.cont_database | Created automatically |
| dch_repo | environment.repo_database | Created automatically |
| m4ai | m4ai.database | Created automatically |
Neo4j
The chart ships Neo4j Enterprise Edition, including the APOC and Graph Data Science plugins.
To use your own Neo4j or Neo4j AuraDB instance instead, set neo4j.enabled: false and adapt:
neo4j.hostnameneo4j.portneo4j.protocolneo4j.dbneo4j.usernameneo4j.password