Change Git,
Argo CD updates the cluster.
Keep an installation done through GitOps up to date: change the chart version, adjust settings, renew the license, migrate an old repository, enable Ozone security, and validate or roll back each change through the repository.
With Argo CD, updating means editing the Git repository: the new chart version goes into HELM_CHART_VERSION, deploy.sh renders the components in current/ again, and a git push makes Argo CD download the new chart from the registry and sync each Application, with the same sync policy as always.
Your environment
If you fill in your environment details here, examples and commands on the page use what you entered. The namespace and the Argo CD namespace are TDP_NAMESPACE and ARGOCD_NAMESPACE in variables.env.local. The Application name is the component's chart name.
This page assumes an installation done with the GitOps kit, as in Installation via Argo CD. For installations done with Helm, follow the Update via Helm. The tdp-operator stays outside GitOps in both cases: it is updated via Helm, before syncing the Kafka and ClickHouse Applications.
Scenarios
- 1 · Prepare
- 2 · Update the chart version
- 3 · Day-to-day operations
- 4 · Enable Ozone security
- 5 · Validate
- 6 · When something goes wrong
Application state, workload readiness, and the operator release.
There is a new chart version, or a configuration change to apply, and you will make it through the repository. Before changing any manifest, confirm that the cluster matches what is in Git: an Application that is already inconsistent, or a pending reconciliation error, gets mixed up with the result of the update and muddles the diagnosis.
The cluster state matches what is declared in Git. OutOfSync indicates differences. Unknown, that Argo CD could not determine it.
All the Application's resources are operational. Progressing: being created or updated; Degraded: one or more with problems; Suspended: sync paused.
The tdp-operator is a Helm release in tdp-system. It does not appear among the Applications and is updated separately.
Check the state of the Applications
All Synced and Healthy before changing Git.
argocd app list
It worked when
STATUS equal to Synced and HEALTH equal to Healthy. This confirms that the cluster matches Git and that there is no pending reconciliation error.$ 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>
…Confirm that the workloads are ready
Start from a stable installation.
kubectl get pods -n <NAMESPACE>
kubectl get statefulset -n <NAMESPACE>
kubectl get deploy -n <NAMESPACE>
It worked when
Running with the READY column complete, and the StatefulSets and Deployments show all replicas ready. This way, an earlier failure is not mistaken for one caused by the update.$ kubectl get pods -n tdp
NAME READY STATUS RESTARTS AGE
tdp-postgresql-0 1/1 Running 2 (62m ago) 3h5m
$ kubectl get statefulset -n tdp
NAME READY AGE
tdp-postgresql 1/1 4d16h
…Check the operator release
Know which version the tdp-operator is at, since it is updated via Helm.
helm list -n tdp-system --all --filter '^tdp-operator$'
The filter matches the release name. Adapt it if the operator was installed under another name. To update it, follow scenario 2 of the Update via Helm, before syncing the Kafka and ClickHouse Applications.
Through the kit, with HELM_CHART_VERSION, or by editing the targetRevision of an Application.
A new TDP release is out and you will bring the components to it. Each component's chart version is in the targetRevision of its Application, in current/. There are two ways to change it: through the kit, with a single variable and one render, or by editing an Application's manifest directly. In both, the existing values files are kept. The chart's new defaults come in by rendering the component with --force (scenario 3).
HELM_CHART_VERSION in variables.env.local and deploy.sh -p with the list of components already in current/. Each one's Application is renewed. Existing values files are kept, unless you use --force.
Change the targetRevision in current/<APPLICATION_NAME>/<APPLICATION_NAME>.yaml. It works for a single component. The values files stay as they are.
The kit's Applications sync on their own (automated, with prune and selfHeal). With syncPolicy: {} in the Application, syncing becomes manual, with argocd app sync or the Sync button in the interface.
The two paths to the Application sync
How does the new version enter Git?
- Rendered manifests. The Application and the values files of each component. This is what Argo CD reads, after the push. (
git add current/ && git push) - Application. Argo CD detects the change in Git, downloads the chart at the new version from the registry, and syncs, according to the Application's sync policy. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded from the Tecnisys registry at the targetRevision version. (
registry.tecnisys.com.br/tdp/charts) - Result. The component's workloads at the new version, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - Target version. A single variable, valid for all TDP charts. (
HELM_CHART_VERSION) - Render again. Updates the Application of each component already in current/. Existing values files are kept; to receive the chart's new defaults, render the component with --force. (
./deploy.sh -v variables.env.local -p $(ls -d current/tdp-*/ | xargs -n1 basename))
How does the new version enter Git?: Through the kit (default)
- Rendered manifests. The Application and the values files of each component. This is what Argo CD reads, after the push. (
git add current/ && git push) - Application. Argo CD detects the change in Git, downloads the chart at the new version from the registry, and syncs, according to the Application's sync policy. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded from the Tecnisys registry at the targetRevision version. (
registry.tecnisys.com.br/tdp/charts) - Result. The component's workloads at the new version, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - Target version. A single variable, valid for all TDP charts. (
HELM_CHART_VERSION) - Render again. Updates the Application of each component already in current/. Existing values files are kept; to receive the chart's new defaults, render the component with --force. (
./deploy.sh -v variables.env.local -p $(ls -d current/tdp-*/ | xargs -n1 basename))
How does the new version enter Git?: Editing the manifest
- Rendered manifests. The Application and the values files of each component. This is what Argo CD reads, after the push. (
git add current/ && git push) - Application. Argo CD detects the change in Git, downloads the chart at the new version from the registry, and syncs, according to the Application's sync policy. (
argocd app get <APPLICATION_NAME>) - Chart. Downloaded from the Tecnisys registry at the targetRevision version. (
registry.tecnisys.com.br/tdp/charts) - Result. The component's workloads at the new version, in the TDP_NAMESPACE namespace. (
kubectl get pods -n <NAMESPACE>) - Direct edit. You change the targetRevision in the Application under current/<APPLICATION_NAME>/ and, if needed, the values files. The values.yaml is not updated with the chart's new defaults. (
current/<APPLICATION_NAME>/<APPLICATION_NAME>.yaml)
Set the target version
HELM_CHART_VERSION with the new version of the TDP charts.
vim variables.env.local # HELM_CHART_VERSION=<TDP_K8S_RELEASE>
The version applies to all TDP charts: in the current release, 3.0.3. If you have been using the kit for a few releases, compare your values files with the new available/*/values.yaml, synchronized with the charts.
Render the components in current/ again
Each Application in current/ pointing to the new version. The values files stay as they are.
./deploy.sh -v variables.env.local -p $(ls -d current/tdp-*/ | xargs -n1 basename)
The --all-components option selects all components in available/, not just the ones you already run: the result would be adding new components to the cluster. List only the components present in current/, as in the command above.
Keep TDP_OZONE_SECURITY=true in variables.env.local: when current/ already contains a values-ozone-security.yaml, deploy.sh refuses to render with TDP_OZONE_SECURITY=false. Details in scenario 4.
Publish
The push is the sync trigger.
git add current/
git commit -m "chore: bump chart version to <TDP_K8S_RELEASE>"
git push origin main
It worked when
OutOfSync and Progressing and returns to Synced and Healthy, in the order Argo CD processes them. To follow one of them:argocd app wait <APPLICATION_NAME> --sync
argocd app wait <APPLICATION_NAME> --health
Edit the Application's targetRevision
One component at the new version, without going through deploy.sh.
1apiVersion: argoproj.io/v1alpha12kind: Application3metadata:4name: tdp-postgresql5namespace: <NAMESPACE>6spec:7project: <NAMESPACE>8sources:9 - repoURL: registry.tecnisys.com.br/tdp/charts10 targetRevision: <TDP_K8S_RELEASE> # the new chart version11 chart: tdp-postgresql12 helm:13 ignoreMissingValueFiles: true14 valueFiles:15 - $values/current/tdp-postgresql/values.yaml16 - $values/current/tdp-postgresql/values-gitops.yaml17 - $values/current/tdp-postgresql/values-integration.yaml18 - repoURL: <GITOPS_REPO_URL>19 targetRevision: main20 ref: values21destination:22 server: https://kubernetes.default.svc23 namespace: <NAMESPACE>24syncPolicy:25 automated:26 prune: true27 selfHeal: true
This is the only field to change to update the component. Argo CD downloads the chart at that version from the OCI registry.
- Chart version (linha 10). This is the only field to change to update the component. Argo CD downloads the chart at that version from the OCI registry.
- Values files (linha 14). They remain those in current/. The values.yaml does not receive the chart's new defaults. For that, render the component through the kit with --force.
- Sync policy (linha 24). With automated, the push is enough. With an empty syncPolicy, sync with argocd app sync or through the interface.
To also change a setting, edit current/<APPLICATION_NAME>/values-gitops.yaml (the parameters of each component are on their configuration pages).
Publish
The push is the sync trigger.
git add current/<APPLICATION_NAME>/
git commit -m "chore: bump <APPLICATION_NAME> to <TDP_K8S_RELEASE>"
git push origin main
It worked when
OutOfSync and Progressing and returns to Synced and Healthy:$ git commit -m "chore: bump tdp-postgresql to <TDP_K8S_RELEASE>"
[main add4ab1] …
1 file changed, 12 insertions(+), 5 deletions(-)
$ git push origin main
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 741 bytes | 741.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: . Processing 1 references
remote: Processed 1 references in total
To https://git.example.com/tdp-gitops.git
3e625e0..add4ab1 main -> mainargocd app wait <APPLICATION_NAME> --sync
argocd app wait <APPLICATION_NAME> --health
Order between components
Argo CD syncs everything at the same time. Components linked to each other through values-integration.yaml come up more cleanly when their dependencies are already running; the suggested order is the same as for installation: Ozone; Hive Metastore, Spark, Iceberg, and Trino; ClickHouse and Superset; and the rest in any order. To control the order in a manual sync, sync one Application at a time.
Update the tdp-operator via Helm, before syncing the Kafka and ClickHouse Applications: Update via Helm. The license (tdp-license) is installed and renewed by the kit, with ./deploy.sh --license: see Renew the license in scenario 3.
Before applying: simulate, compare, sync in parts
# Simulate the sync, without applying
argocd app sync <APPLICATION_NAME> --dry-run
# Differences between the cluster and Git
argocd app diff <APPLICATION_NAME>
# Sync only one resource of the Application
argocd app sync <APPLICATION_NAME> --resource apps:StatefulSet:<APPLICATION_NAME>
Settings, credentials, license, new or removed components, old kit.
The platform is up and you need a routine change: a parameter, a credential, one more or one fewer component, an expired license. With the kit, each of these tasks is a change in the repository, which the App of Apps watches; deploy.sh comes in when something needs to be rendered or reapplied.
Tasks and how to do them
| Task | How to do it |
|---|---|
| Change a setting | Edit current/<APPLICATION_NAME>/values-gitops.yaml, commit, and push |
| Update the charts | Set HELM_CHART_VERSION in variables.env.local and render again the components already in current/: scenario 2 |
| Adopt the chart's new defaults | Render the component again with --force (overwrites its values files) |
| Add a component | Render it, following scenario 3 of Installation via Argo CD, commit, and push |
| Remove a component | Delete current/<APPLICATION_NAME>/ and push: Argo CD removes (prune) the Application and runs its cleanup hooks: Uninstallation |
| Rotate registry credentials | Update variables.env.local and run ./deploy.sh -c -v variables.env.local --force |
| Renew the license | Request the new license from Tecnisys, providing the cluster ID (kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'; a new cluster needs a new license). 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 |
--force overwrites the current/<APPLICATION_NAME>/values*.yaml files, including any edits you have made to them.
Change a setting
The new parameter in the component's values-gitops.yaml, applied by Argo CD.
vim current/<APPLICATION_NAME>/values-gitops.yaml
git add current/<APPLICATION_NAME>/
git commit -m "chore: tune <APPLICATION_NAME>"
git push origin main
values-gitops.yaml takes precedence over values.yaml and is kept in later renders. The parameters of each component are in the configuration index.
Adopt the chart's new defaultsOpcional
The component's values.yaml and overlays rewritten from the kit templates.
./deploy.sh -p -v variables.env.local --force <APPLICATION_NAME>
git diff current/<APPLICATION_NAME>/ # review what was overwritten before publishing
git add current/<APPLICATION_NAME>/ && git commit -m "chore: re-render <APPLICATION_NAME>" && git push origin main
Rotate the registry credentialsOpcional
Git and registry Secrets recreated with the new credentials.
vim variables.env.local # TECNISYS_HELM_REGISTRY_USER / TECNISYS_HELM_REGISTRY_TOKEN
./deploy.sh -c -v variables.env.local --force
Renew the licenseOpcional
PlatformLicense back to VALID.
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}' # cluster ID, to request the license
cp <LOCAL_PATH>/lease.json license/lease.json
./deploy.sh --license -v variables.env.local
kubectl get platformlicenses -A # STATE must be VALID
It worked when
VALID.Update a repository created with an old kit
Old kits committed the current/common/*-secret.yaml files and rendered Applications that read only values.yaml. To migrate an existing repository to the current layout:
Copy the files from the new kit
deploy.sh, common/, available/, .gitignore, and variables.env at the new version.
Copy them to your repository and add the new variables to variables.env.local.
Apply the common resources first
The repository Secrets protected before the new App of Apps syncs.
./deploy.sh -c -v variables.env.local
This marks the repository Secrets with Prune=false before the new App of Apps, which excludes them, syncs, so that Argo CD never deletes them.
Stop versioning the rendered Secrets
The Secrets out of Git.
git rm --cached current/common/*-secret.yaml
Render again the components you run
Applications with the listed overlays, values.yaml preserved.
./deploy.sh -p -v variables.env.local $(ls -d current/tdp-*/ | xargs -n1 basename)
Install the platform license
A valid TDP license in the cluster.
./deploy.sh --license -v variables.env.local
kubectl get platformlicenses -A # STATE must be VALID
Commit and push
The repository in the current layout, watched by the App of Apps.
git add -A
git commit -m "chore: migrate to the current gitops kit layout"
git push origin main
Rotate the git and registry tokens: they remain in the repository history.
Kerberos and real S3 authentication, with clients reading the key from a Secret.
The tdp-ozone is delivered with security disabled: there is no Kerberos between its daemons, and the S3 Gateway accepts any key, so every client in the cluster can read and write in all buckets. The other components use dummy keys (values-integration.yaml). This is the default for a first deployment. Enable security for any use beyond a demonstration. The procedure works both on a new Ozone and on one already running without security, preserving the data.
TDP_OZONE_SECURITY=false. No Kerberos, no S3 authentication. Dummy keys on the clients.
Ozone's internal KDC (realm TDP.LOCAL), Kerberos between the OM, the SCM, the datanodes, the S3 Gateway, and Recon, and real S3 authentication. An S3 key for the tdp-s3-admin administrator goes in the ozone-s3-credentials Secret, in TDP_NAMESPACE. All clients use it and therefore act as the Ozone administrator.
Security cannot be disabled through the kit: when current/ already contains a values-ozone-security.yaml, deploy.sh refuses to render with TDP_OZONE_SECURITY=false.
What changes when security is enabled
Each client receives a values-ozone-security.yaml, which reads the key from the Secret instead of the dummy keys:
| Component | How it reads the key |
|---|---|
| tdp-trino | AWS_* environment variables on the coordinator and workers; the hive and iceberg catalogs use ${ENV:AWS_ACCESS_KEY_ID} |
| tdp-spark | AWS_* environment variables on the master, workers, and History Server; core-site.xml uses ${env.AWS_ACCESS_KEY_ID} |
| tdp-hive-metastore | metastore.s3.existingSecret |
| tdp-clickhouse | AWS_* environment variables on the server pods; the ozone disk uses from_env |
- The OM, SCM, Recon, and S3 Gateway web interfaces remain without authentication.
- Spark drivers run outside the tdp-spark pods (Jupyter, Airflow) must obtain
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYfrom that Secret themselves. - On the first startup with security enabled, the OM obtains the certificate signed by the SCM, which it did not receive when it was initialized (
ozone om --init, run byvalues-ozone-security.yaml).
Make a backup
Everything you cannot lose, saved before the change.
Back up everything you cannot lose before enabling security, as with any change of this size.
Run the script and publish
TDP_OZONE_SECURITY=true and the values-ozone-security.yaml files rendered in current/.
./enable-ozone-security.sh -v variables.env.local
git add current/ && git commit -m "feat: enable Ozone security" && git push
The script:
- Checks whether the tdp-ozone chart at the version set in
HELM_CHART_VERSIONruns the keytab export as an Argo CD Sync hook: older builds of the chart never complete the first sync with security enabled. The check requireshelmand access to the registry. The--skip-chart-checkoption skips it. - Asks for confirmation (the
-yoption skips it) and setsTDP_OZONE_SECURITY=truein your variables file. - Renders with
deploy.sh -pthe tdp-ozone and the clients in the table above that are already incurrent/, adding each one'svalues-ozone-security.yamland keeping the other values files. Components rendered later receive theirs fromdeploy.sh.
When empty, TDP_OZONE_KDC_MASTER_PASSWORD is generated on the first render and stored in current/tdp-ozone/values-ozone-security.yaml.
Follow the Ozone sync
Daemons with Kerberos and the ozone-s3-credentials Secret filled in.
The tdp-ozone syncs the KDC (sync wave -2), a Sync hook Job that exports the keytabs to Secrets (wave -1), and then the Ozone daemons. On an Ozone that is already running, the daemons restart one by one with Kerberos, and the OM obtains its certificate on startup. Afterwards, a PostSync Job fills in ozone-s3-credentials:
kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}'
It worked when
Synced and Healthy.Restart the clients that were already running
Trino, Spark, Hive Metastore, and ClickHouse reading the new key.
Client pods that start before the Secret exists wait in CreateContainerConfigError and start on their own as soon as it is filled in. Pods that were already running keep the old keys: restart the Deployments and StatefulSets of tdp-trino, tdp-spark, tdp-hive-metastore, and tdp-clickhouse (Restart in the Argo CD interface, or kubectl rollout restart).
Create the buckets with the new key
warehouse and clickhouse-data existing in the /s3v volume.
NS=<NAMESPACE>
export AWS_ACCESS_KEY_ID=$(kubectl -n $NS get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}' | base64 -d)
export AWS_SECRET_ACCESS_KEY=$(kubectl -n $NS get secret ozone-s3-credentials -o jsonpath='{.data.aws_secret_access_key}' | base64 -d)
kubectl -n $NS port-forward svc/tdp-ozone-s3g-rest 9878:9878 &
aws s3 mb s3://warehouse --endpoint-url http://localhost:9878 --region us-east-1
aws s3 mb s3://clickhouse-data --endpoint-url http://localhost:9878 --region us-east-1
Only necessary if the buckets do not exist yet.
Application status and health, pods, and the sync history.
The push is done and you want to confirm that the sync finished and that each component came back healthy. Argo CD renders the chart with helm template and manages the Application lifecycle itself: there is no Helm release, and the revision history is kept in the Application.
Check the status of the Applications
All Synced and Healthy.
argocd app list
argocd app get <APPLICATION_NAME>
It worked when
Synced under SYNC STATUS and Healthy under HEALTH STATUS.$ 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 HealthyFollow in real time
Wait for the sync and the health of an Application.
argocd app wait <APPLICATION_NAME> --sync
argocd app wait <APPLICATION_NAME> --health
It worked when
Synced and Healthy.$ argocd app wait tdp-postgresql --sync
TIMESTAMP GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
…
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 Healthy
$ argocd app wait tdp-postgresql --health
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
networking.k8s.io NetworkPolicy tdp tdp-postgresql Synced networkpolicy.networking.k8s.io/tdp-postgresql configured
policy PodDisruptionBudget tdp tdp-postgresql Synced Healthy poddisruptionbudget.policy/tdp-postgresql configured
ServiceAccount tdp tdp-postgresql Synced serviceaccount/tdp-postgresql unchanged
Secret tdp tdp-postgresql Synced secret/tdp-postgresql unchanged
Service tdp tdp-postgresql-hl Synced Healthy service/tdp-postgresql-hl unchanged
Service tdp tdp-postgresql Synced Healthy service/tdp-postgresql configured
apps StatefulSet tdp tdp-postgresql Synced Healthy statefulset.apps/tdp-postgresql configuredCheck the pods and the workload readiness
Everything Running, with all replicas ready.
kubectl get pods -n <NAMESPACE>
kubectl get statefulset -n <NAMESPACE>
kubectl get deploy -n <NAMESPACE>
It worked when
Running with READY complete, and the StatefulSets and Deployments show all replicas ready.$ kubectl get pods -n tdp
NAME READY STATUS RESTARTS AGE
tdp-postgresql-0 1/1 Running 2 (62m ago) 3h5m
$ kubectl get statefulset -n tdp
NAME READY AGE
tdp-postgresql 1/1 4d16h
…Check the Application history
The update sync as the most recent entry.
argocd app history <APPLICATION_NAME>
OutOfSync, conflicts with manual changes, license, Ozone security, rolling back through Git.
An Application does not return to Synced and Healthy after the push, or deploy.sh refused to render. Start with the operation details and the application controller logs, which tell you which resource the sync stopped at. Then choose the symptom.
argocd app get <APPLICATION_NAME> --show-operation
kubectl logs -n <ARGOCD_NAMESPACE> -l app.kubernetes.io/name=tdp-argocd-application-controller --tail=200
Troubleshooting
Paste the error message or choose the symptom.
- Application in OutOfSync or Degraded. Cause: The sync failed on a resource, or the component's pods did not become healthy with the new version or configuration. What to do: Read the operation and the controller logs, fix the cause in Git, and sync manually to see the error up close.
- Resources changed by hand conflict with Git. Cause: Someone changed a resource directly in the cluster and Argo CD compares it with Git. What to do: Force the sync to overwrite the cluster with Git, or let selfHeal fix the drift on its own (this is the default for the kit's Applications).
- License error during sync. Cause: The TDP license is missing or invalid. What to do: Install or renew the license through the kit and check that STATE is VALID.
- deploy.sh refuses to render with TDP_OZONE_SECURITY=false. Cause: Ozone security has already been enabled in this repository (current/ contains a values-ozone-security.yaml) and cannot be disabled through the kit. What to do: Keep TDP_OZONE_SECURITY=true in variables.env.local and render again.
- Ozone clients in CreateContainerConfigError. Cause: The Trino, Spark, Hive Metastore, or ClickHouse pods started before the Ozone PostSync Job filled in the ozone-s3-credentials Secret. What to do: Wait: they start on their own as soon as the Secret is filled in. Pods that were already running with the old keys must be restarted, as in scenario 4 (Restart in the Argo CD interface, or kubectl rollout restart).
- Ozone never completes the first sync with security enabled. Cause: The Ozone chart at HELM_CHART_VERSION is an old build, which does not run the keytab export as an Argo CD Sync hook. What to do: Update HELM_CHART_VERSION to a version that does this (enable-ozone-security.sh checks it; do not use --skip-chart-check to work around it) and render again.
- I need to go back to the previous version. Cause: The update failed and the component needs to go back to its previous state. What to do: Revert the commit in Git and publish: Argo CD syncs the cluster to the previous state.
The complete rollback procedure, through Git or through the Application history, is in Rollback.