Skip to main content

You declare the resource,
the operator takes care of the rest.

The CRDs and operators that create and maintain the Kafka, ClickHouse, and NiFi clusters as declared, what stays with the team, and the two ways to apply the charts: directly with Helm or through GitOps with Argo CD.

Kubernetes operators​

A Kafka or ClickHouse cluster is declared as a Kubernetes resource. The operator takes care of the rest.

CRDs (Custom Resource Definitions) teach Kubernetes to recognize new resource types, such as Kafka or ClickHouseInstallation.

An operator watches these resources and creates, configures and maintains the Pods, services and volumes needed for the actual environment to match what was declared.

A change to the environment is made in the resource, and the operator applies it.

The CRDs are cluster-scoped and are installed only once, by the tdp-crds chart, before the other components.

ComponentOperatorResources the operator manages
Apache KafkaStrimziKafka, KafkaNodePool, KafkaTopic, KafkaUser, KafkaConnect, KafkaConnector
ClickHouseAltinity ClickHouse OperatorClickHouseInstallation, ClickHouseKeeperInstallation
Apache NiFiNiFiKopNifiCluster, NifiUser, NifiUserGroup, NifiDataflow
OpenMetadataOMJob Operator, disabled by defaultOMJob, CronOMJob
TDP LicenseTecnisys LicensingPlatformLicense, LicensePolicy
Argo CDArgo CDApplication, AppProject, ApplicationSet

The operators reach the cluster in two ways:

  • Shared, once per cluster: the Kafka and ClickHouse operators come in the tdp-operator chart, installed in the platform namespace, and serve the releases of these components in any namespace.
  • Together with the component: NiFiKop comes in the tdp-nifi chart, the license operator in tdp-license and Argo CD in tdp-argo. Each one is installed with its own chart.

What the operator does and what stays with the team​

TaskWho does it
Create, recreate and update the Pods, Services and volumes declared in the resource, such as Kafka, ClickHouseInstallation and NifiClusterOperator
Restart the Kafka brokers one at a time during upgradesStrimzi
Create the PodDisruptionBudget of the Kafka brokersStrimzi
Install the CRDs before the components and apply the CRDs changed by a new version of the tdp-crds chartTeam
Define the retention policy of the NiFi data volumes on uninstallation (reclaimPolicy, Delete by default)Team
CRD upgrade

helm upgrade does not update CRDs that are already installed.
When a new version of the tdp-crds chart changes a CRD, the new definition is applied manually, according to the upgrade procedure.

Direct deployment with Helm or through GitOps with Argo CD​

The same charts can be applied directly or integrated into GitOps delivery.

Direct application

Helm

The team runs the installation and upgrade commands, manually or through external automation, specifying the chart, the version, the namespace and the values file.

Installation via Helm

GitOps delivery

Argo CD

The deployment definitions are versioned in Git. The Argo CD Applications reference the charts and their values, and synchronization applies the desired state to the cluster.

GitOps with Argo CD

In both paths, the platform foundation (CRDs, license, and operators) comes before the components, and each component comes after those it depends on. The installation sequence is in Installation via Helm and in Installation via Argo CD.

See also​