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
- What the operator does and what stays with the team
- Direct deployment 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.
| Component | Operator | Resources the operator manages |
|---|---|---|
| Apache Kafka | Strimzi | Kafka, KafkaNodePool, KafkaTopic, KafkaUser, KafkaConnect, KafkaConnector |
| ClickHouse | Altinity ClickHouse Operator | ClickHouseInstallation, ClickHouseKeeperInstallation |
| Apache NiFi | NiFiKop | NifiCluster, NifiUser, NifiUserGroup, NifiDataflow |
| OpenMetadata | OMJob Operator, disabled by default | OMJob, CronOMJob |
| TDP License | Tecnisys Licensing | PlatformLicense, LicensePolicy |
| Argo CD | Argo CD | Application, AppProject, ApplicationSet |
The operators reach the cluster in two ways:
- Shared, once per cluster: the Kafka and ClickHouse operators come in the
tdp-operatorchart, installed in the platform namespace, and serve the releases of these components in any namespace. - Together with the component: NiFiKop comes in the
tdp-nifichart, the license operator intdp-licenseand Argo CD intdp-argo. Each one is installed with its own chart.
What the operator does and what stays with the team
| Task | Who does it |
|---|---|
Create, recreate and update the Pods, Services and volumes declared in the resource, such as Kafka, ClickHouseInstallation and NifiCluster | Operator |
| Restart the Kafka brokers one at a time during upgrades | Strimzi |
| Create the PodDisruptionBudget of the Kafka brokers | Strimzi |
Install the CRDs before the components and apply the CRDs changed by a new version of the tdp-crds chart | Team |
Define the retention policy of the NiFi data volumes on uninstallation (reclaimPolicy, Delete by default) | Team |
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.
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.
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
Overview
TDP Kubernetes Architecture
The cluster figure, the platform map and the charts per component.
Data path
Who does what along the data path
Kafka, NiFi and Airflow on arrival; Spark, Trino and ClickHouse in preparation and querying; the connections to existing systems.
Storage
Storage, processing and catalog
Table files in S3 storage, Ozone by default; engines sized separately; shared catalog in the Hive Metastore.
Organization
Namespaces and environments
Platform namespace, registry credential and network rules per namespace. Production, staging and development in the same cluster.