Skip to main content
Version: 4.0

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).

tip

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-f5 by default (the NGINX Ingress Controller). Set ingressClassName to 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 secret tls-secret.
  • DNS entries for your domain (fqdn) and for neo4j.<fqdn> and otlp.<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.

tip

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 in imagePullSecrets.
  • 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.password and opensearch_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:

  1. Set environment.storage.create_local_storage_pv: true and the node in environment.storage.local_storage_node_affinity_hostname.
  2. Set <service>.persistence.storageClassName: local-storage, and adapt the environment.storage.pv_path_* paths.
  3. Create the directories with sufficient permissions before the first start, or let the chart create them: set environment.storage.create_local_storage_dirs: true and place all paths below environment.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.host
  • postgres.port
  • postgres.user
  • postgres.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.

DatabaseConfigurationNotes
airflowairflow.databaseCreate beforehand
keycloakkeycloak.databaseCreate beforehand
dch_contenvironment.cont_databaseCreated automatically
dch_repoenvironment.repo_databaseCreated automatically
m4aim4ai.databaseCreated 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.hostname
  • neo4j.port
  • neo4j.protocol
  • neo4j.db
  • neo4j.username
  • neo4j.password