The cluster follows Git,
the kit does the rest.
The platform installed through GitOps: a repository of your own, derived from the Tecnisys kit, describes each component as an Argo CD Application. The deploy.sh script prepares the cluster and renders the manifests, and Argo CD keeps the cluster equal to what is in Git.
Installing TDP with Argo CD means cloning the GitOps kit into a repository of your own, filling in a variables file, running deploy.sh to prepare the cluster and render the components, and publishing the result to Git: from then on, Argo CD installs each component from the Tecnisys registry and undoes any change made outside the repository.
Your environment
If you fill in your environment details here, examples and commands on the page use what you entered. The fields are the values you will write to variables.env.local (TDP_NAMESPACE, ARGOCD_NAMESPACE, GIT_REPO_URL, TDP_DOMAIN, GIT_REPO_USER, TECNISYS_HELM_REGISTRY_USER, and HELM_CHART_VERSION), plus the Application and pod names used in troubleshooting. Tokens and passwords do not go here.
Check the prerequisites and have at hand kubectl configured for the cluster, envsubst (gettext package), git, and helm. To install the components manually, without GitOps, use the installation via Helm.
Scenarios
- 1 · Create the repository and the variables
- 2 · Prepare the cluster
- 3 · Publish the components
- 4 · Verify the installation
- 5 · When something goes wrong
Clone the kit into a repository of your own and fill in the environment variables file.
You are going to install TDP through GitOps and do not yet have the repository that Argo CD will watch. The starting point is the public kit Tecnisys-OSS/tdp-k8s-gitops, kept in sync with each TDP release. In it, each component is an Argo CD Application (the resource that tells Argo CD which chart to download from the Tecnisys OCI registry1 and with which values to install it), and a root Application, the App of Apps, creates all the others from what is published in Git. This repository must be yours: the kit is overwritten on every release.
available/ and common/ hold the manifests with variables (${VAR}); they are never applied directly.
current/ receives the ready manifests, generated by deploy.sh. It is committed and watched by the App of Apps, except for the Secrets in current/common/, which stay out of Git.
Charts and images come exclusively from registry.tecnisys.com.br: community/* is public and tdp/* requires the tdp-registry pull secret, created by deploy.sh.
tdp-gitops/
├── common/ # Bootstrap resources (AppProject, Secrets, App of Apps)
│ ├── argo-gitops-appproject.yaml
│ ├── argo-gitops-app-of-apps.yaml
│ ├── tdp-devops-repo-secret.yaml
│ ├── tdp-registry-secret.yaml
│ └── tdp-image-pull-secret.yaml
├── available/ # Application templates, one folder per component
│ ├── tdp-airflow/
│ │ ├── tdp-airflow.yaml # the Argo CD Application
│ │ ├── values.yaml # chart defaults
│ │ ├── values-gitops.yaml # GitOps overlay (optional)
│ │ ├── values-integration.yaml # integration with other components (optional)
│ │ └── values-ozone-security.yaml # Ozone security (only with TDP_OZONE_SECURITY=true)
│ ├── tdp-clickhouse/
│ ├── ...
│ └── tdp-trino/
├── current/ # Manifests rendered by deploy.sh, committed
│ # to git, except current/common/*-secret.yaml
├── variables.env # Reference variables (do not edit;
│ # copy to variables.env.local)
├── deploy.sh # Rendering and deploy script
├── enable-ozone-security.sh # Turns on Ozone security
└── README.md
Clone the kit and point it to your repository
A repository under your control, with the kit content on the main branch.
# Get the kit
git clone https://github.com/Tecnisys-OSS/tdp-k8s-gitops.git my-tdp-gitops
cd my-tdp-gitops
# Point it to your own, empty repository, and publish
git remote set-url origin <GITOPS_REPO_URL>
git push -u origin main
The App of Apps follows the main branch.
It worked when
git clone ends without error and creates the my-tdp-gitops folder.Cloning into 'my-tdp-gitops'...The Tecnisys-OSS/tdp-k8s-gitops repository is the kit's distribution source and is overwritten on every TDP release. If your environment's Argo CD watches it directly, all of your configuration is destroyed on the next release sync. Always clone the kit and point GIT_REPO_URL to a repository of your own.
Fill in the variables file
A variables.env.local with the namespaces, repository, credentials, domain, license, and passwords of your environment.
cp variables.env variables.env.local
vim variables.env.local
The file is read by bash with source: put single quotes around any value that contains $, such as the Harbor robot accounts (TECNISYS_HELM_REGISTRY_USER='robot$tdp+pull').
# --- Namespaces and project ---
# Namespace where Argo CD is installed (and where the App of Apps lives)
ARGOCD_NAMESPACE=<ARGOCD_NAMESPACE>
# Namespace where the components' pods run (and the tdp-registry pull secret)
TDP_NAMESPACE=<NAMESPACE>
# Namespace where the components' Applications are created
TDP_PROJECT_NAMESPACE=<NAMESPACE>
# Name of the "App of Apps" Application
TDP_APPLICATIONS=argo-gitops-tdp
# --- Git repository watched by Argo CD (YOURS, created in step 1) ---
GIT_REPO_URL=<GITOPS_REPO_URL>
GIT_REPO_USER=<GIT_USERNAME>
GIT_REPO_TOKEN_OR_PASS=<GIT_TOKEN>
# --- Charts origin ---
HELM_CHART_REPO_URL=registry.tecnisys.com.br/tdp/charts
HELM_CHART_VERSION=<TDP_K8S_RELEASE>
# --- Target cluster (use the default for in-cluster) ---
KUBERNETES_SERVER=https://kubernetes.default.svc
# --- Registry credentials ---
# Used for the charts (Argo CD repository secret) and for the images
# (tdp-registry pull secret, created by deploy.sh in TDP_NAMESPACE)
TECNISYS_HELM_REGISTRY_USER=<REGISTRY_USERNAME>
TECNISYS_HELM_REGISTRY_TOKEN=<REGISTRY_CLI_SECRET>
# --- Domain, classes, and exposure ---
# Domain of the Ingress/Gateway API hosts: <APPLICATION_NAME>.${TDP_DOMAIN}
# (default: tdp.local; the -d flag overrides it)
TDP_DOMAIN=<CLUSTER_DOMAIN>
# IngressClass and StorageClass written to every values-gitops.yaml
# (empty = chart default and the cluster's default class)
TDP_INGRESS_CLASS=
TDP_STORAGE_CLASS=
# How components with a web endpoint are exposed:
# ingress, gatewayapi, or none (default; the -e flag overrides it)
TDP_EXPOSE=none
# With gatewayapi: the existing Gateway the HTTPRoutes attach to (required)
TDP_GATEWAY_NAME=
TDP_GATEWAY_NAMESPACE=
# --- OpenMetadata metadata database ---
# mysql (bundled, default) or postgresql (this kit's tdp-postgresql component,
# release tdp-postgresql in TDP_NAMESPACE; deploy it first).
# Sets global.TDP-Settings.database in the component's values-gitops.yaml
TDP_OPENMETADATA_DATABASE=mysql
# --- Platform license (files provided by Tecnisys) ---
TDP_LICENSE_PUBLIC_KEYS_FILE=license/keys.json
TDP_LICENSE_FILE=license/lease.json
TDP_LICENSE_NAMESPACE=tdp-system
TDP_LICENSE_POLICY_NAMESPACES=
# --- Interface and database passwords ---
TDP_DEFAULT_PASSWORD='<DEFAULT_PASSWORD>'
TDP_SUPERSET_SECRET_KEY=
# --- Ozone security ---
# Kerberos (Ozone's internal KDC) and real S3 authentication on the Ozone S3 Gateway.
# Off by default. Turn it on with enable-ozone-security.sh, which sets
# TDP_OZONE_SECURITY=true and renders each component's
# values-ozone-security.yaml. Once on, it cannot be turned off.
TDP_OZONE_SECURITY=false
# KDC master password, used only once to create the KDC database.
# Empty: keeps the one already rendered in current/, or generates one.
TDP_OZONE_KDC_MASTER_PASSWORD=
| Variable | What it is for |
|---|---|
ARGOCD_NAMESPACE | Namespace where Argo CD is installed (and where the App of Apps lives) |
TDP_NAMESPACE | Namespace where the components' pods run and where the tdp-registry pull secret lives |
TDP_PROJECT_NAMESPACE | Namespace where the components' Applications are created |
TDP_APPLICATIONS | Name of the App of Apps Application |
GIT_REPO_URL, GIT_REPO_USER, GIT_REPO_TOKEN_OR_PASS | The repository Argo CD watches: yours, created in step 1 |
HELM_CHART_REPO_URL, HELM_CHART_VERSION | Where the charts come from and at which version. Use the current release version: 3.0.3 |
KUBERNETES_SERVER | Target cluster (in-cluster by default) |
TECNISYS_HELM_REGISTRY_USER, TECNISYS_HELM_REGISTRY_TOKEN | Download of the charts (Argo CD) and the images (tdp-registry secret) |
TDP_DOMAIN | Domain of the Ingress/Gateway API hosts (airflow.<CLUSTER_DOMAIN>, …). Default tdp.local. The -d flag overrides it |
TDP_INGRESS_CLASS, TDP_STORAGE_CLASS | Written to every values-gitops.yaml. Empty = chart default and the cluster's default class |
TDP_EXPOSE | How components with a web endpoint are exposed: ingress, gatewayapi, or none (default). The -e flag overrides it |
TDP_GATEWAY_NAME, TDP_GATEWAY_NAMESPACE | With gatewayapi: the existing Gateway the HTTPRoutes attach to (required) |
TDP_OPENMETADATA_DATABASE | OpenMetadata metadata database: mysql (bundled, default) or postgresql (the kit's tdp-postgresql, release tdp-postgresql in TDP_NAMESPACE; deploy it first). Sets global.TDP-Settings.database in the component's values-gitops.yaml |
TDP_LICENSE_PUBLIC_KEYS_FILE, TDP_LICENSE_FILE | The two license files Tecnisys sends by email, public keys (keys.json) and license (lease.json), at a path relative to the variables file. Defaults: license/keys.json and license/lease.json. The license/ directory is in .gitignore |
TDP_LICENSE_NAMESPACE | License namespace. Default tdp-system |
TDP_LICENSE_POLICY_NAMESPACES | Namespaces where the TDP components run, comma-separated. Empty = the TDP_NAMESPACE |
TDP_DEFAULT_PASSWORD | Password used for every TDP_*_PASSWORD variable left blank. In the variables.env distributed with the kit, ChangeMe!T3c, which is for testing only |
TDP_<COMPONENT>_..._PASSWORD | Administrative logins of the interfaces (Airflow, CloudBeaver, Jupyter, Kafka UI, Ranger, Superset) and database users |
TDP_SUPERSET_SECRET_KEY | Superset SECRET_KEY: signs sessions and encrypts the connection passwords Superset stores |
TDP_OZONE_SECURITY | Ozone security (Kerberos and real S3 authentication). Default false. Set by enable-ozone-security.sh: Ozone security |
TDP_OZONE_KDC_MASTER_PASSWORD | Ozone KDC master password, used only once to create the KDC database. Empty: deploy.sh keeps the one already in current/tdp-ozone/ or generates one |
The passwords are checked by deploy.sh when it renders each component: at least 8 characters from A-Z a-z 0-9 ! . _ ~ -. They only reach the components' files and take effect when the user is first created: changing one later does not change the password of an existing user, and the existing current/<APPLICATION_NAME>/values*.yaml files are only rendered again with --force. A shared credential uses a single variable on both sides: for example, TDP_CLICKHOUSE_TRINO_PASSWORD defines the ClickHouse trino user and the Trino clickhouse catalog. The OpenMetadata administrator (admin@open-metadata.org, temporary password ChangeMe!T3c, change it on first access) is created by OpenMetadata itself and is not covered by these variables.
In the kit's examples, Argo CD and the license live in tdp-system (ARGOCD_NAMESPACE and TDP_LICENSE_NAMESPACE) and the components in tdp (TDP_NAMESPACE and TDP_PROJECT_NAMESPACE). When installing tdp-argo directly through Helm, the examples use the argocd namespace: Argo CD Configuration. Both work: in this page's commands, <ARGOCD_NAMESPACE> is the namespace set in ARGOCD_NAMESPACE.
It worked when
variables.env.local exists next to variables.env, with GIT_REPO_URL pointing to your repository, the registry credentials filled in, and HELM_CHART_VERSION at the current release.variables.env.local is in .gitignore: never commit tokens or passwords. The variables.env file is only the reference distributed with the kit. Do not edit it.
License, Argo CD, and common resources with deploy.sh, with a new or an existing Argo CD.
The repository and the variables are ready, and the cluster either does not have Argo CD yet or already has one installed some other way. In both cases deploy.sh prepares the cluster: it installs the license, Argo CD when it does not exist, and the common resources (the AppProject, the Git and registry Secrets, the tdp-registry pull secret, and the App of Apps Application). The license requires the two files that Tecnisys sends by email, keys.json and lease.json, in the place pointed to by TDP_LICENSE_PUBLIC_KEYS_FILE and TDP_LICENSE_FILE. To request them, send the cluster ID: Licensing Configuration.
./deploy.sh --install does it all: registry login, CRDs (if missing), license, Argo CD through Helm, rendering of common/, and application of the common resources.
./deploy.sh --license installs only the license and ./deploy.sh -c applies the common resources. The existing Argo CD must manage Applications in the TDP_PROJECT_NAMESPACE namespace.
tdp-operator (the Kafka and ClickHouse operators) is installed by the administrator through Helm, after the license: Installation via Helm, step 3.
The cluster prepared, with or without Argo CD
Does the cluster already have Argo CD?
- Variables file. Namespaces, Git repository, registry credentials, domain, exposure, license, and passwords. Read by deploy.sh. It is in .gitignore. (
./deploy.sh -v variables.env.local) - Full bootstrap. It logs in to the registry, installs the CRDs (if missing), the license, and Argo CD through Helm, waits for everything to be ready, renders common/, and applies the common resources. (
./deploy.sh --install -v variables.env.local) - License. Installed in TDP_LICENSE_NAMESPACE before any chart. The script stops if it does not become VALID. (
kubectl get platformlicenses -A) - The kit's Argo CD. Installed in ARGOCD_NAMESPACE with application.namespaces set to * and the interface exposed according to TDP_EXPOSE. (
argo.<CLUSTER_DOMAIN>) - Common resources. AppProject, Git repository Secret, OCI registry Secret, tdp-registry pull secret, and the App of Apps Application, applied with kubectl. (
./deploy.sh -c) - App of Apps. A root Application that reads the current/ directory of your repository and creates one Application per published component. (
kubectl -n <ARGOCD_NAMESPACE> get applications)
Does the cluster already have Argo CD?: No, the kit installs it
- Variables file. Namespaces, Git repository, registry credentials, domain, exposure, license, and passwords. Read by deploy.sh. It is in .gitignore. (
./deploy.sh -v variables.env.local) - Full bootstrap. It logs in to the registry, installs the CRDs (if missing), the license, and Argo CD through Helm, waits for everything to be ready, renders common/, and applies the common resources. (
./deploy.sh --install -v variables.env.local) - License. Installed in TDP_LICENSE_NAMESPACE before any chart. The script stops if it does not become VALID. (
kubectl get platformlicenses -A) - The kit's Argo CD. Installed in ARGOCD_NAMESPACE with application.namespaces set to * and the interface exposed according to TDP_EXPOSE. (
argo.<CLUSTER_DOMAIN>) - Common resources. AppProject, Git repository Secret, OCI registry Secret, tdp-registry pull secret, and the App of Apps Application, applied with kubectl. (
./deploy.sh -c) - App of Apps. A root Application that reads the current/ directory of your repository and creates one Application per published component. (
kubectl -n <ARGOCD_NAMESPACE> get applications)
Does the cluster already have Argo CD?: Yes, already installed
- Variables file. Namespaces, Git repository, registry credentials, domain, exposure, license, and passwords. Read by deploy.sh. It is in .gitignore. (
./deploy.sh -v variables.env.local) - With Argo CD already installed. It installs only the license (--license), then renders and applies the common resources (-c): AppProject, Secrets, and App of Apps. The existing Argo CD must manage Applications in the components namespace. (
./deploy.sh --license && ./deploy.sh -c) - License. Installed in TDP_LICENSE_NAMESPACE before any chart. The script stops if it does not become VALID. (
kubectl get platformlicenses -A) - Existing Argo CD. The kit does not touch it. Make sure application.namespaces includes the namespace where the components' Applications will be created.
- Common resources. AppProject, Git repository Secret, OCI registry Secret, tdp-registry pull secret, and the App of Apps Application, applied with kubectl. (
./deploy.sh -c) - App of Apps. A root Application that reads the current/ directory of your repository and creates one Application per published component. (
kubectl -n <ARGOCD_NAMESPACE> get applications)
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}' # cluster ID, to request the license
mkdir -p license && cp <LOCAL_PATH>/keys.json <LOCAL_PATH>/lease.json license/
Run the full bootstrap
Valid license, Argo CD up, and common resources applied, in one command.
./deploy.sh --install -v variables.env.local
What runs, in this order:
helm registry login: authenticates to the OCI registry.helm upgrade --install tdp-crds: installs the cluster CRDs. It is skipped when the Argo CD CRDs and the license CRDs already exist.- The license, in
TDP_LICENSE_NAMESPACE: thetdp-registrypull secret,helm upgrade --install tdp-licensewith the public keys, and the license. It then waits for the license and stops the run if it is notVALID. helm upgrade --install tdp-argo: installs Argo CD inARGOCD_NAMESPACE, withapplication.namespaces: "*"(to manage Applications in any namespace) and with the interface exposed according toTDP_EXPOSE(see Interface exposure). It waits for the server and the application controller to be ready.envsubstoncommon/intocurrent/common/. The components are rendered separately, in scenario 3.kubectl applyon the files incurrent/common/(creatingTDP_NAMESPACEif needed):argo-gitops-appproject.yaml(TDP AppProject),tdp-devops-repo-secret.yaml(git credential for Argo CD),tdp-registry-secret.yaml(OCI registry credential for Argo CD),tdp-image-pull-secret.yaml(thetdp-registrypull secret inTDP_NAMESPACE. An existingtdp-registryis kept unless--forceis used), andargo-gitops-app-of-apps.yaml(the App of Apps Application).
It worked when
VALID, and the App of Apps appears in the Argo CD namespace:…
Release: tdp-argo | Namespace: argocd | Chart: tdp-argo-<CHART_VERSION>
…
Argo CD installed successfully
…
[SUCCESS] ArgoCD (tdp-argo) installed
[INFO] Waiting for ArgoCD components to be ready...
deployment "tdp-argocd-server" successfully rolled out
partitioned roll out complete: 2 new pods have been updated...
[SUCCESS] ArgoCD is running in namespace: argocd
[INFO] Rendering templates to current/ ...
…
[INFO] Applying manifests to Kubernetes...
…
[SUCCESS] Manifests applied successfully
[SUCCESS] Deployment completed successfully!kubectl get platformlicenses -A
kubectl -n <ARGOCD_NAMESPACE> get applications
If the script stops at the license
The message points to the license installation steps. Fix the files in license/ or the TDP_LICENSE_* variables, install only the license, and repeat the bootstrap:
./deploy.sh --license -v variables.env.local
kubectl get platformlicenses -A # STATE must be VALID
./deploy.sh --install -v variables.env.local
On OpenShift, tdp-argo is equivalent to Red Hat OpenShift GitOps: both install Argo CD and the same CRDs. Use only one of the two. If OpenShift GitOps is already installed, treat it as an existing Argo CD (toggle the "Does the cluster already have Argo CD?" selector above). To check:
oc get subscriptions.operators.coreos.com -A | grep -i gitops
Publish the bootstrap
The App of Apps reads current/ from Git. The files must be there.
git add current/
git commit -m "chore: bootstrap TDP GitOps"
git push origin main
The Secrets rendered in current/common/ are in .gitignore and stay local only. From the push on, the App of Apps creates every Application present in current/, with selfHeal: true.
It worked when
main branch to your repository.[main …] …
…
Writing objects: 100% (13/13), 5.34 KiB | 140.00 KiB/s, done.
…
To https://git.example.com/tdp-gitops.git
* [new branch] main -> mainAccess the interface and change the password
Login as admin in the Argo CD interface.
kubectl -n <ARGOCD_NAMESPACE> get secret argocd-initial-admin-secret \
-o jsonpath='{.data.password}' | base64 -d && echo
kubectl get ingress -n <ARGOCD_NAMESPACE>
# or
kubectl get httproute -n <ARGOCD_NAMESPACE>
After the first login, change the admin password (User Info → Update Password in the interface, or argocd account update-password) and delete the argocd-initial-admin-secret Secret. In the interface, navigate to the Application set in TDP_APPLICATIONS to follow the progress.
It worked when
NAME CLASS HOSTS ADDRESS PORTS AGE
tdp-argocd-server traefik argo.tdp.local 192.168.127.2 80 4d4hLet Argo CD manage the Applications namespace
application.namespaces includes TDP_PROJECT_NAMESPACE.
The components' Applications live in the TDP_PROJECT_NAMESPACE namespace, not in the Argo CD namespace. An Argo CD you installed on your own must manage that namespace through the application.namespaces parameter (Argo CD Configuration):
kubectl patch configmap argocd-cm -n <ARGOCD_NAMESPACE> --type merge \
-p '{"data":{"application.namespaces":"<NAMESPACE>"}}'
kubectl rollout restart deployment argocd-server -n <ARGOCD_NAMESPACE>
kubectl rollout restart statefulset argocd-application-controller -n <ARGOCD_NAMESPACE>
Install the license and apply the common resources
Valid license and App of Apps created, without reinstalling Argo CD.
./deploy.sh --license -v variables.env.local
./deploy.sh -c -v variables.env.local
It worked when
VALID and the App of Apps appears in the Argo CD namespace:$ ./deploy.sh -c -v variables.env.local
[INFO] TDP GitOps Deployment Script
[INFO] ============================
[INFO] Reading variables from: …/variables.env.local
[SUCCESS] All required variables are set
[INFO] Rendering templates to current/ ...
…
[INFO] Applying manifests to Kubernetes...
[INFO] Applying common resources from: …/current/common
…
[SUCCESS] Manifests applied successfully
[SUCCESS] Deployment completed successfully!kubectl get platformlicenses -A
kubectl -n <ARGOCD_NAMESPACE> get applications
Publish the bootstrap
The App of Apps reads current/ from Git. The files must be there.
git add current/
git commit -m "chore: bootstrap TDP GitOps"
git push origin main
The Secrets rendered in current/common/ are in .gitignore and stay local only.
It worked when
main branch to your repository.[main …] …
…
Writing objects: 100% (13/13), 5.34 KiB | 140.00 KiB/s, done.
…
To https://git.example.com/tdp-gitops.git
* [new branch] main -> mainArgo CD interface exposure
--install exposes the Argo CD interface the same way as the components, according to TDP_EXPOSE (or the -e flag). No helm upgrade is needed afterwards:
TDP_EXPOSE / -e | What tdp-argo receives |
|---|---|
ingress | An Ingress for argo.${TDP_DOMAIN}, with TDP_INGRESS_CLASS (when empty, the chart default, nginx, applies) |
gatewayapi | An HTTPRoute for argo.${TDP_DOMAIN} on the TDP_GATEWAY_NAME Gateway, in TDP_GATEWAY_NAMESPACE (when empty, TDP_NAMESPACE). The route lives in ARGOCD_NAMESPACE, so the Gateway listener must accept routes from that namespace |
none | No Ingress or route. Access the interface through port-forward: Terminal input |
In all modes, Argo CD's own URL (configs.cm.url) is set to https://argo.${TDP_DOMAIN}, so that redirects and SSO callbacks match the host. To change the exposure or the domain later, run ./deploy.sh --install again with the new values: it updates tdp-argo in place, rebuilds the values from the variables file, and discards manual adjustments. Without TLS configuration, the Ingress serves the controller's default certificate. Complete Ingress and Gateway API reference, including TLS on the Gateway's HTTPS listener: External exposure. Login through LDAP or Active Directory, group roles, and traffic restriction: Argo CD Security.
Replace the file pointed to by TDP_LICENSE_FILE (and the one in TDP_LICENSE_PUBLIC_KEYS_FILE, if Tecnisys sends new keys), run ./deploy.sh --license -v variables.env.local, and check with kubectl get platformlicenses -A: Renew the license.
Render the Applications, publish to Git, and follow the sync.
Argo CD is up with the App of Apps watching your repository, and current/ only has the common resources so far. Each component enters in two moves: deploy.sh renders its folder into current/, replacing the variables, and a git push publishes the result. The App of Apps creates the Application, which downloads the chart from the registry and installs it with the values files from your repository. Argo CD tries to sync everything at the same time: components integrated with one another come up more cleanly when their dependencies are already running.
It only adds or updates: components already in current/ that you do not name are preserved, so the App of Apps does not remove them. An existing values*.yaml is kept (with a warning) unless --force is used; the Application manifest is always updated.
TDP_EXPOSE or -e sets, in each component's values-gitops.yaml, TDP-Settings.gateway.ingress.enabled and TDP-Settings.gateway.gatewayApi.enabled, which are mutually exclusive. The hosts are <APPLICATION_NAME>.${TDP_DOMAIN}; Ingresses use TDP_INGRESS_CLASS and HTTPRoutes attach to TDP_GATEWAY_NAME. Spark gets two hosts: spark.${TDP_DOMAIN} (Master UI) and spark-history.${TDP_DOMAIN} (History Server, enabled in values-integration.yaml, with event logs in s3a://warehouse/spark-events).
deploy.sh warns if anything in current/ points to a registry other than registry.tecnisys.com.br.
The Application reaching the cluster
How the Application reaches the cluster
- Templates. One folder per component, with the Application and the values files containing variables. They are never applied directly. Default:
distributed with the kit. - Rendering. It replaces the variables and writes to current/<APPLICATION_NAME>/. It only adds or updates: components already there that you do not name are preserved. (
./deploy.sh -p -v variables.env.local <APPLICATION_NAME>) - Rendered manifests. What Argo CD reads. It must be published to your repository: the Application points to it as $values. (
git add current/ && git push) - Application. It combines the chart from the OCI registry with the values files from your repository. Automatic sync, selfHeal, and prune. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded by Argo CD from the Tecnisys registry, at the version in HELM_CHART_VERSION. (
HELM_CHART_VERSION) - Result. The component's workloads, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - App of Apps. It detects each new folder in current/ and creates the matching Application, with selfHeal. (
git push origin main)
How the Application reaches the cluster: Through the App of Apps (default)
- Templates. One folder per component, with the Application and the values files containing variables. They are never applied directly. Default:
distributed with the kit. - Rendering. It replaces the variables and writes to current/<APPLICATION_NAME>/. It only adds or updates: components already there that you do not name are preserved. (
./deploy.sh -p -v variables.env.local <APPLICATION_NAME>) - Rendered manifests. What Argo CD reads. It must be published to your repository: the Application points to it as $values. (
git add current/ && git push) - Application. It combines the chart from the OCI registry with the values files from your repository. Automatic sync, selfHeal, and prune. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded by Argo CD from the Tecnisys registry, at the version in HELM_CHART_VERSION. (
HELM_CHART_VERSION) - Result. The component's workloads, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - App of Apps. It detects each new folder in current/ and creates the matching Application, with selfHeal. (
git push origin main)
How the Application reaches the cluster: Direct mode (deploy.sh -a)
- Templates. One folder per component, with the Application and the values files containing variables. They are never applied directly. Default:
distributed with the kit. - Rendering. It replaces the variables and writes to current/<APPLICATION_NAME>/. It only adds or updates: components already there that you do not name are preserved. (
./deploy.sh -p -v variables.env.local <APPLICATION_NAME>) - Rendered manifests. What Argo CD reads. It must be published to your repository: the Application points to it as $values. (
git add current/ && git push) - Application. It combines the chart from the OCI registry with the values files from your repository. Automatic sync, selfHeal, and prune. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded by Argo CD from the Tecnisys registry, at the version in HELM_CHART_VERSION. (
HELM_CHART_VERSION) - Result. The component's workloads, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - Direct mode. It applies the Application with kubectl, without waiting for the App of Apps. The push of current/ is still required: the values are read from Git. (
./deploy.sh -a -v variables.env.local <APPLICATION_NAME>)
Order and dependencies
| Order | Chart | Component | Version | Dependencies |
|---|---|---|---|---|
| 1 | tdp-postgresql | PostgreSQL | 17.5.0 | None |
| 2 | tdp-ozone | Apache Ozone | 2.1.1 | None |
| 3 | tdp-hive-metastore | Hive Metastore | 4.0.0 | None |
| 4 | tdp-spark | Spark | 4.0.2 | None |
| 5 | tdp-iceberg | Iceberg | 1.10.1 | None |
| 6 | tdp-trino | Trino | 478 | None |
| 7 | tdp-clickhouse | ClickHouse | 25.8.11.66 | tdp-crds (Altinity CRDs), tdp-operator |
| 8 | tdp-superset | Superset | 5.0.0 | None |
| 9 | tdp-deltalake | Delta Lake | 4.0.1 | None |
| 10 | tdp-ranger | Ranger | 2.7.0 | None |
| 11 | tdp-kafka | Kafka (Strimzi) | 4.1.0 | tdp-crds (Strimzi CRDs), tdp-operator |
| 12 | tdp-nifi | NiFi | 1.28.0 | None |
| 13 | tdp-airflow | Airflow | 3.0.2 | None |
| 14 | tdp-jupyter | JupyterHub | 5.3.0 | None |
| 15 | tdp-cloudbeaver | CloudBeaver | 25.3.0 | None |
| 16 | tdp-openmetadata | OpenMetadata | 1.12.4 | None |
The Version column is the component's version (for example Kafka 4.1.0, Airflow 3.0.2). The Helm chart version is 3.0.3 for all TDP charts. The table above covers the dependencies between charts. The one below suggests the rollout order for components connected to each other through values-integration.yaml:
| Order | Components | Notes |
|---|---|---|
| 1. Object storage | tdp-ozone | Create the warehouse and clickhouse-data buckets in Ozone's /s3v volume (with Ozone security on, with the key from the ozone-s3-credentials Secret: Ozone security) |
| 2. Metadata and engines | tdp-hive-metastore, tdp-spark, tdp-iceberg, tdp-trino | Use the Ozone S3 Gateway |
| 3. Consumption and BI | tdp-clickhouse, tdp-superset | Superset imports the ClickHouse and Trino datasources |
| 4. Any order | tdp-airflow, tdp-kafka, tdp-nifi, tdp-jupyter and the others | Kafka and ClickHouse need tdp-operator |
Render the components' Applications
One current/<APPLICATION_NAME>/ folder per component, with the Application and the values files.
# A few components
./deploy.sh -p -v variables.env.local tdp-ozone tdp-hive-metastore tdp-trino
# All components in available/, with hosts such as airflow.<CLUSTER_DOMAIN>
./deploy.sh -p -v variables.env.local -d <CLUSTER_DOMAIN> --all-components
# Exposed through Ingress, or through Gateway API HTTPRoutes on an existing Gateway
./deploy.sh -p -v variables.env.local -e ingress tdp-trino tdp-superset
./deploy.sh -p -v variables.env.local -e gatewayapi tdp-trino tdp-superset # requires TDP_GATEWAY_NAME
Without component names, deploy.sh renders only current/common/. To change the exposure of an already rendered component, render it again with --force or edit its values-gitops.yaml.
Publish to your repository
The push is the trigger: the App of Apps creates each new Application.
git add current/
git commit -m "feat: add tdp-ozone, tdp-hive-metastore, tdp-trino"
git push origin main
Each Application installs its chart from registry.tecnisys.com.br, with the values from your repository, using automatic sync, selfHeal, and prune.
./deploy.sh -a -v variables.env.local tdp-trino applies the Application with kubectl, without going through the App of Apps. Even so, Argo CD reads the values files from Git: publish current/ anyway.
Follow the sync
Applications Synced and Healthy, pods Running.
# App of Apps Application (Argo CD namespace)
kubectl get application -n <ARGOCD_NAMESPACE>
# Created Applications (TDP components namespace)
kubectl get application -n <NAMESPACE>
# Pods in the components namespace
kubectl get pods -n <NAMESPACE> -w
It worked when
Synced and Healthy, and the namespace pods are Running with all replicas ready. In the Argo CD interface, the TDP_APPLICATIONS Application shows its children.$ kubectl get application -n argocd
NAME SYNC STATUS HEALTH STATUS
argo-gitops-tdp Synced Healthy
$ kubectl get application -n tdp
NAME SYNC STATUS HEALTH STATUS
tdp-postgresql Synced Healthy
tdp-trino Synced Healthy
$ kubectl get pods -n tdp
NAME READY STATUS RESTARTS AGE
tdp-postgresql-0 1/1 Running 0 68m
tdp-trino-coordinator-54ff8f5b49-k2458 1/1 Running 0 69m
tdp-trino-worker-7fc98d57bd-8mjzw 1/1 Running 0 68m
tdp-trino-worker-7fc98d57bd-vd6t2 1/1 Running 0 69mAdjust a componentOpcional
Your changes survive the next rendering.
Edit the files in current/<APPLICATION_NAME>/: that is what Argo CD reads, and deploy.sh preserves them when rendering again. Prefer values-gitops.yaml (or a new overlay) for your changes. --force overwrites all of the component's values*.yaml, including values-gitops.yaml.
vim current/tdp-trino/values-gitops.yaml
git add current/tdp-trino/
git commit -m "chore: tune trino"
git push origin main
# Argo CD syncs automatically
An Application manifest
1apiVersion: argoproj.io/v1alpha12kind: Application3metadata:4name: tdp-postgresql5namespace: <NAMESPACE>6labels:7 tecnisys.io/cluster: tdp8finalizers:9 - resources-finalizer.argocd.argoproj.io10spec:11project: <NAMESPACE>12sources:13 - repoURL: registry.tecnisys.com.br/tdp/charts14 targetRevision: <TDP_K8S_RELEASE>15 chart: tdp-postgresql16 helm:17 # values-gitops.yaml and values-integration.yaml are optional overlays:18 # missing files are ignored19 ignoreMissingValueFiles: true20 valueFiles:21 - $values/current/tdp-postgresql/values.yaml22 - $values/current/tdp-postgresql/values-gitops.yaml23 - $values/current/tdp-postgresql/values-integration.yaml24 - repoURL: <GITOPS_REPO_URL>25 targetRevision: main26 ref: values27destination:28 server: https://kubernetes.default.svc29 namespace: <NAMESPACE>30syncPolicy:31 automated:32 prune: true33 selfHeal: true34 syncOptions:35 - CreateNamespace=true36 - RespectIgnoreDifferences=true37ignoreDifferences:38 - group: ""39 kind: Secret40 jqPathExpressions:41 - ".data"
The TDP_PROJECT_NAMESPACE namespace, separate from the Argo CD namespace.
- Where the Application is created (linha 5). The TDP_PROJECT_NAMESPACE namespace, separate from the Argo CD namespace.
- AppProject (linha 11). Defines the Application's permissions (TDP_NAMESPACE).
- Chart in the OCI registry (linha 13). repoURL and chart point to the Tecnisys registry; targetRevision is the chart version (HELM_CHART_VERSION).
- Layered values files (linha 20). Read from your repository, in order. The last ones prevail. Missing files are ignored.
- Your repository as $values (linha 24). The second source is the Git repository, referenced by the valueFiles as $values.
- Where the pods are created (linha 29). The TDP_NAMESPACE namespace.
- Automatic sync (linha 30). prune removes what left Git; selfHeal undoes changes made directly in the cluster.
- Ignored Secrets (linha 36). Changes to the .data of Secrets do not count as a difference.
Layered values files
Each Application overlays up to four values files from current/<APPLICATION_NAME>/, in this order. The last ones prevail:
| File | Content | On a release sync |
|---|---|---|
values.yaml | Chart defaults (copy of the chart's own values.yaml) | Replaced by the chart's new defaults |
values-gitops.yaml | GitOps defaults: Argo CD-specific adjustments (for example, Airflow's migration Jobs as Sync hooks), Ozone S3 authentication off while Kerberos is off, the IngressClass/StorageClass from TDP_INGRESS_CLASS/TDP_STORAGE_CLASS, the exposure from TDP_EXPOSE, the components' passwords coming from TDP_*_PASSWORD, and the production image mirrors | Kept |
values-integration.yaml | Integration with the other TDP components in TDP_NAMESPACE: Trino catalogs (hive, iceberg, clickhouse), Spark, Hive Metastore, and ClickHouse over Ozone S3, Superset datasources | Kept |
values-ozone-security.yaml | Only with TDP_OZONE_SECURITY=true (tdp-ozone, tdp-trino, tdp-spark, tdp-hive-metastore, tdp-clickhouse): Ozone Kerberos and S3 authentication, and the clients' S3 key coming from the ozone-s3-credentials Secret: Ozone security | Kept |
- Maps are merged key by key, so an overlay contains only the keys it changes. Lists and multi-line texts are replaced entirely.
- Empty
TDP_INGRESS_CLASS/TDP_STORAGE_CLASSare rendered asnull, which removes the key: the chart default applies. - The overlays are optional: delete one of them from
current/<APPLICATION_NAME>/to stop using it. The Applications useignoreMissingValueFiles: true. - Argo CD does not substitute variables: everything in
current/must have been rendered bydeploy.shbefore the push. values-integration.yamlassumes the referenced components use the default names inTDP_NAMESPACEand takes the ClickHouse, Trino, and Superset passwords from the variables file (TDP_DEFAULT_PASSWORDandTDP_*_PASSWORD).
Applications, pods, Services, and volumes: what each command must show.
The Applications were published and you want confirmation that the whole set is healthy. Argo CD gives the per-Application view (synced and healthy?); kubectl gives the per-resource view: pods, Services, and volumes.
One per component, created by the App of Apps in TDP_PROJECT_NAMESPACE, with automatic sync, self-heal, and prune.
The components' resources live in TDP_NAMESPACE.
Check the Applications
All Synced and Healthy.
argocd app list
argocd app get tdp-postgresql
It worked when
Synced in SYNC STATUS and Healthy in HEALTH STATUS. An OutOfSync or Degraded Application is the starting point of scenario 5.$ argocd app list
NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH SYNCPOLICY CONDITIONS REPO PATH TARGET
argocd/tdp-postgresql https://kubernetes.default.svc tdp default Synced Healthy Auto-Prune <none> registry.tecnisys.com.br/tdp/charts <CHART_VERSION>
…
$ argocd app get tdp-postgresql
Name: argocd/tdp-postgresql
Project: default
Server: https://kubernetes.default.svc
Namespace: tdp
URL: https://argo.tdp.local/applications/tdp-postgresql
Source:
- Repo: registry.tecnisys.com.br/tdp/charts
Target: <CHART_VERSION>
SyncWindow: Sync Allowed
Sync Policy: Automated (Prune)
Sync Status: Synced to <CHART_VERSION>
Health Status: Healthy
GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
Secret tdp tdp-postgresql Synced secret/tdp-postgresql configured
Service tdp tdp-postgresql Synced Healthy
Service tdp tdp-postgresql-hl Synced Healthy
ServiceAccount tdp tdp-postgresql Synced
apps StatefulSet tdp tdp-postgresql Synced Healthy
networking.k8s.io NetworkPolicy tdp tdp-postgresql Synced
policy PodDisruptionBudget tdp tdp-postgresql Synced HealthyCheck the pods
All Running, with all replicas ready.
kubectl get pods -n <NAMESPACE>
It worked when
Running status with all replicas ready.NAME READY STATUS RESTARTS AGE
tdp-postgresql-0 1/1 Running 2 (62m ago) 3h5mCheck the Services
One internal address per component.
kubectl get svc -n <NAMESPACE>
It worked when
CLUSTER-IP).NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
tdp-postgresql ClusterIP 10.43.85.244 <none> 5432/TCP 88m
tdp-postgresql-hl ClusterIP None <none> 5432/TCP 88m
tdp-trino ClusterIP 10.43.203.199 <none> 8080/TCP 88m
tdp-trino-worker ClusterIP None <none> 8080/TCP 88mCheck the volumes
All PVCs Bound.
kubectl get pvc -n <NAMESPACE>
It worked when
Bound status.NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
data-tdp-postgresql-0 Bound pvc-213b68eb-eff9-4274-8ce0-73ad115455f4 1Gi RWO local-path <unset> 91mDiagnosis by symptom: OutOfSync, license, registry, pending PVC, stalled sync.
An Application does not become Synced and Healthy, or the bootstrap itself stopped. In the GitOps flow there are two layers to look at: Argo CD (the Application and the application controller) and Kubernetes (the component's pods). Start with the Application and work down to the pod.
argocd app get <APPLICATION_NAME>
kubectl describe pod <POD_NAME> -n <NAMESPACE>
kubectl logs <POD_NAME> -n <NAMESPACE>
Troubleshooting
Paste the error message or pick the symptom.
- Application OutOfSync or Degraded. Cause: What is in Git differs from the cluster, or the component's pods did not become healthy. What to do: Read the Application details, the pod events and logs, and sync manually to see the error up close.
- License error. Cause: The TDP license is missing or invalid. What to do: Read the message, fix the license files, install the license again and, once it is VALID, repeat the installation or sync again.
- Authentication error on Git or the registry. Cause: Wrong credentials, or an unquoted $ in variables.env.local. What to do: Check the Git and registry Secrets in the Argo CD namespace and reapply the common resources.
- Application in the wrong namespace. Cause: The Applications must be in the TDP_PROJECT_NAMESPACE namespace, not the Argo CD one, and an Argo CD of your own only accepts them there if application.namespaces includes that namespace. What to do: Check argocd-cm and adjust application.namespaces (scenario 2, Argo CD already installed).
- Pod Pending with unbound immediate PersistentVolumeClaims. Cause: The PVC has no StorageClass and the cluster has no default class. What to do: Set TDP_STORAGE_CLASS in variables.env.local (or mark a StorageClass as default in the cluster), render the component again with --force, publish, and delete the StatefulSet and the unbound PVCs so Argo CD recreates them.
- ImagePullBackOff on a tdp/ image. Cause: The tdp-registry Secret is missing in the namespace set in TDP_NAMESPACE. What to do: Reapply the common resources, which recreate the pull secret.
- Sync stalled on waiting for healthy state. Cause: A sync that waits for pods that never become healthy has no timeout, and until it ends new commits stay queued. What to do: Fix the cause and use Terminate on the operation, through the Argo CD interface: automatic sync starts over from scratch.
- App of Apps with current: app path does not exist. Cause: The current/ directory was never published to the repository. What to do: Render and publish.
- App of Apps flapping to OutOfSync. Cause: The post-delete finalizers that Argo CD adds to child Applications whose charts have PostDelete hooks do not exist in Git, which would make the App of Apps alternate between OutOfSync and self-heal. What to do: The kit already handles this case, with ignoreDifferences on the App of Apps. No action is needed.
Sync debugging
# See the Application events
kubectl describe application <APPLICATION_NAME> -n <NAMESPACE>
# Application controller logs
kubectl logs -n <ARGOCD_NAMESPACE> -l app.kubernetes.io/name=tdp-argocd-application-controller --tail=100
# Force reconciliation
kubectl annotate application <APPLICATION_NAME> -n <NAMESPACE> \
argocd.argoproj.io/refresh=hard --overwrite
Roll back an Application
Argo CD keeps a sync history. In the interface: select the Application, History and Rollback, choose the revision, and Rollback. Through the CLI:
# List the history
argocd app history <APPLICATION_NAME>
# Roll back to a specific revision
argocd app rollback <APPLICATION_NAME> <REVISION>
The complete rollback procedure, including through Git, is in Rollback.
deploy.sh reference
./deploy.sh [OPÇÕES] [COMPONENTES... | --all-components]
| Flag | Description |
|---|---|
--install | First installation: helm login → tdp-crds → license (waits until VALID) → tdp-argo (exposed at argo.${TDP_DOMAIN}, according to TDP_EXPOSE) → waits for ready → renders → applies common |
--license | Install or renew only the license: tdp-crds (if missing) → license. Waits until VALID and exits |
-v FILE | Use a custom variables file (default: variables.env) |
-p | Only render to current/ (without applying) |
-c | Apply only the common resources (current/common/) through kubectl |
-a | Apply only the Applications of the selected components through kubectl (does not apply common) |
--all-components | Select all components in available/ (instead of naming them) |
-d DOMAIN | Domain of the Ingress/Gateway API hosts. Overrides TDP_DOMAIN |
-e MODE | Exposure: ingress, gatewayapi, or none. Overrides TDP_EXPOSE |
-f, --force | Overwrite the existing current/<APPLICATION_NAME>/values*.yaml and replace an existing tdp-registry pull secret |
-h | Show help |
- With no arguments, it shows the help.
- Without components, it renders (and, without
-p, applies) onlycurrent/common/. - Without
-p,-c, or-a,deploy.shapplies the common resources plus the Applications of the selected components.
# Full first installation (installs Argo CD + bootstrap)
./deploy.sh --install -v variables.env.local
# Render components and publish (GitOps mode)
./deploy.sh -p -v variables.env.local tdp-ozone tdp-trino
git add current/ && git commit -m "chore: render" && git push
# Render all components, with hosts such as airflow.<CLUSTER_DOMAIN>
./deploy.sh -p -v variables.env.local -d <CLUSTER_DOMAIN> --all-components
# Switch an already rendered component to Ingress (--force rewrites the values)
./deploy.sh -p -v variables.env.local -e ingress --force tdp-trino
# Turn on Ozone security (Kerberos + real S3 authentication) and then publish
./enable-ozone-security.sh -v variables.env.local
# Reapply only the common resources (AppProject, Secrets, App of Apps)
./deploy.sh -c -v variables.env.local
# Direct deploy of one, several, or all components
./deploy.sh -a -v variables.env.local tdp-trino
./deploy.sh -a -v variables.env.local tdp-ozone tdp-trino
./deploy.sh -a -v variables.env.local --all-components
Argo CD compatibility
How the TDP charts run under Argo CD:
- Charts in OCI, values in git: each Application combines the chart from the OCI registry with the values files from your git repository (referenced as
$values). - tdp-postgresql Secrets: in its Application, changes to the
.dataof Secrets do not count as a difference (ignoreDifferenceswithRespectIgnoreDifferences=true). - Separate namespace: Applications in
TDP_PROJECT_NAMESPACE. - tdp-license, tdp-operator: set
skipCrdCheck=trueon these two charts when deployed through Argo CD (in tdp-operator, the CRD pre-install check useslookup, which always returns empty under Argo CD)
Security
- The registry and git Secrets are templates in
common/:deploy.shrenders them intocurrent/common/*-secret.yaml, which stay out of the App of Apps and are applied only bydeploy.sh. variables.env.local, the Secrets rendered incurrent/common/*-secret.yaml, and the license files inlicense/are in.gitignore: never commit tokens or passwords.- The components' passwords default to the value of
TDP_DEFAULT_PASSWORD(ChangeMe!T3cin the distributedvariables.env), anddeploy.shwarns while any of them remains at that default. Set them before any real environment. The renderedcurrent/<APPLICATION_NAME>/values*.yamlfiles store these passwords in plain text and are versioned: keep the GitOps repository private. values-integration.yamlpoints to the Ozone S3 Gateway with security off: the S3 keys there are not real credentials, and any client reads and writes. Enable Ozone security for any use beyond a demonstration.- Use a pull-only robot account for the registry and rotate the git and registry tokens regularly.
TDP_PROJECT_NAMESPACEmust have restricted RBAC: the Applications there can deploy anywhere the AppProject allows.
Next steps
Environment adjustments
Cluster policies
NetworkPolicies for clusters with connectivity restrictions. And Kyverno and private registry.
Per component
Configuration index
The parameters and scenarios of each component, for the overlays in current/.
Footnotes
-
OCI (Open Container Initiative) is the standard for storing not only container images but also Helm packages. For this reason, when registering the registry, you must check the Enable OCI option: without it, Argo CD tries to treat the address as a conventional Helm repository based on
index.yamland the connection fails. ↩