icat-k8s

by ALBA Synchrotron

Helm chartv1.1.1Verified publisher

A Helm chart for deploying ICAT core components on Kubernetes

About this chart

ICAT-k8s: Helm chart for ICAT

The ICAT project provides a metadata catalogue and related components to support experimental data management for large-scale facilities, linking all aspects of the research lifecycle from proposal through to data and articles publication.

More information on ICAT can be found here.

Introduction

This chart bootstraps all ICAT core components deployment on a Kubernetes cluster using the Helm package manager.

Notice: This Chart is meant to deploy ICAT components that support JakartaEE 10+ and Java 11+ with Payara 6. Deployments of older versions could be achieved through this Chart, but it is not directly supported.

Prerequisites

  • Kubernetes 1.30+
  • Helm 3.17.0+
  • An external MySQL / MariaDB database for ICAT and some of its components.

Installing the Chart

To install the chart with the release name my-release, ideally you should make a copy of the default values file into values-my-release.yaml and customize th deployment and each component's version and configuration to your needs.

After configuring the values file to your needs, the Chart can be installed as follows:

helm install my-release icat-k8s -n NAMESPACE -f values-my-release.yaml

Any changes you make afterward to you values file can be applied as follows:

helm upgrade my-release icat-k8s -n NAMESPACE -f values-my-release.yaml

Tip: List all releases using helm list

You can uninstall and completely remove the Chart from your cluster with the following command:

helm uninstall my-release -n NAMESPACE

Note: You need to substitute the placeholder

NAMESPACE with the name of namespace you want the Chart deployed at.

Configuration and installation details

Supported ICAT components

Currently, the following ICAT components are supported and have been tested with this chart.

NameVersions
icat.server6.0.0+
icat.lucene2.0.0+
icat.oaipmh2.0.0+
ids.server2.0.0+
authn.anon3.0.0+
authn.db3.0.0+
authn.ldap3.0.0+
authn.oidc2.0.0+
authn.simple3.0.0+

Startup dependencies

The core components of ICAT need to be deployed in a certain order as some depend on others for stating up. This Chart takes care of this aspect by making sure some component's deployment does not start before its dependencies. By default the chart applies the following criteria:

  • Authentication plugins: No dependencies on start.
  • ICAT server: Waits for authentication plugins to be up and running.
  • OAIPMH module and IDS server: Depend on icat.server.

Startup dependencies for any additional component you may add can be added by indicating the component's key and the URL and port against which to test the availability.

startupDependencies:
  - name: "icat-server"
    path: "/icat/version/"
    port: 8080

Setup scripts and init-containers

The Chart leverages init-containers and a couple of Python scripts to perform the artifact retrieval and configuration for each component prior their start.

Each deployed component will deploy two init-containers:

  1. Retrieve component and required libraries artifacts for the application, and run setup script.
  2. After the setup script has run, wait for startup dependencies to become available.

Elastic APM integration

All deployed components can be monitoring with Elastic if the option is enabled. If enabled, an APM agent is deployed alongside each component which forwards logs and resource usage to your Elastic instance.

Running own images and artifact repositories

By default, the Chart is provided configured to fetch container images, libraries and ICAT's app artifacts from their original repositories, that is, Docker Hub, Apache Maven Central and ICAT's official repo. However, to reduce third-party dependency and mitigate supply-chain risks, it is recommended to use your own repositories or at least configure proxied mirrors

The Chart gives the option to use specific images and repositories:

images:
  container:
    micro: "docker.io/payara/micro:7.2026.2-jdk25"
    serverFull: "docker.io/payara/server-full:7.2026.2-jdk25"
  initContainers:
    # Must be image running as root (need to install curl)
    python: "docker.io/python:3.12.9-bullseye"
    curl: "docker.io/curlimages/curl:8.18.0"
  [ ... ]
artifacts:
  rootRepositoryURL: "https://repo.maven.apache.org/maven2"
  databaseConnector:
    artifactPath: "/org/mariadb/jdbc/mariadb-java-client/3.5.2/mariadb-java-client-3.5.2.jar"
    filename: "mariadb-java-client.jar"
    type: "lib"
    #repositoryURL: "https://youcanoverridethisifyouwant.nice"
  elasticAPM:
    artifactPath: "/co/elastic/apm/elastic-apm-agent/1.50.0/elastic-apm-agent-1.50.0.jar"
    filename: "elastic-apm-agent.jar"
    type: "lib"
    #repositoryURL: "https://youcanoverridethisifyouwant.nice"
  [ ... ]

Parameters

Ingress parameters

NameDescriptionDefault value
ingress.enabledDeploy Ingress for ICAT with the Chart.false
ingress.hostFQDN to use as the ingress' host.
ingress.ingressClassNameName of an IngressClass cluster resource.
ingress.tlsSecretNameName of the Secret containing certificate for enabling TLS.

Container images parameters

NameDescriptionDefault value
images.container.microImage for running Payara micro containers.docker.io/payara/micro:7.2026.2-jdk25
images.container.serverFullImage for running Payara server-full containers.docker.io/payara/server-full:7.2026.2-jdk25
images.initContainers.pythonPython image for setup scripts.docker.io/python:3.12.9-bullseye
images.initContainers.curlcurl image used for fetching artifacts..docker.io/curlimages/curl:8.18.0

Artifacts parameters

NameDescriptionDefault value
artifacts.rootRepositoryURLDefault repository for fetching artifacts.https://repo.maven.apache.org/maven2
artifacts.databaseConnector.artifactPathDB connector's artifact path/org/mariadb/jdbc/mariadb-java-client/3.5.2/mariadb-java-client-3.5.2.jar
artifacts.databaseConnector.filenameFilename of artifact inside container.mariadb-java-client.jar
artifacts.databaseConnector.typeArtifact type.lib
artifacts.databaseConnector.repositoryURLRepository override for specific artifact.
artifacts.elasticAPM.artifactPathElasticAPM's artifact path/co/elastic/apm/elastic-apm-agent/1.50.0/elastic-apm-agent-1.50.0.jar
artifacts.elasticAPM.filenameFilename of artifact inside container.elastic-apm-agent.jar
artifacts.elasticAPM.typeArtifact type.lib
artifacts.elasticAPM.repositoryURLRepository override for specific artifact.
artifacts.idsStorageFile.artifactPathIDS storage file artifact path/org/icatproject/ids.storage_file/1.4.4/ids.storage_file-1.4.4.jar
artifacts.idsStorageFile.filenameFilename of artifact inside container.ids-storage_file.jar
artifacts.idsStorageFile.typeArtifact type.lib
artifacts.idsStorageFile.repositoryURLRepository override for specific artifact.https://repo.icatproject.org/repo/
artifacts.icatProjectComponents.baseArtifactPathBase path of ICAT components artifacts./org/icatproject/
artifacts.icatProjectComponents.repositoryURLRepository override for ICAT artifacts.https://repo.icatproject.org/repo
artifacts.initScripts.urlURL of setup scripts.https://raw.githubusercontent.com/ALBA-Synchrotron/icat-k8s/refs/heads/main/setup_scripts

General configuration parameters

NameDescriptionDefault value
imagePullSecretNameName of secret with credentials for private image registry.
deploymentPriorityClassNamePriority classname for the deployment.
timezoneSet's TZ in all containers.Europe/Madrid

ElasticAPM parameters

NameDescriptionDefault value
elasticAPM.enabledToggle ElasticAPM integrationfalse
elasticAPM.agentJarPathPath to APM's jar file inside container./opt/payara/libs/elastic-apm-agent.jar
elasticAPM.packageNamesPackage names to monitor.es.cells.icat.authn_alba,org.icatproject.authn_anon,org.icatproject.authn_db,org.icatproject.icat_oaipmh,org.icatproject.exposed,org.icatproject.ids"
elasticAPM.apm.serviceNamePrefixPrefix to add to each component's service.icat-core
elasticAPM.apm.apmLogSendingToggle APM log sending feature.true
elasticAPM.apm.secretTokenSecretNameName of secret containing APM's secret token.elastic-apm-token
elasticAPM.apm.environmentAPM's reporting environment name.test

ICAT components parameters (components)

NameDescriptionDefault value
nameName of component (format e.g.: 'auth

Deploy icat-k8s with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has icat-k8s on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charticat-k8s is pinned at v1.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply