Skip to main content
Version 3.0

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.

CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+Helm3.2.0+

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.

Before you start

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​

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.

Synced

The cluster state matches what is declared in Git. OutOfSync indicates differences. Unknown, that Argo CD could not determine it.

Healthy

All the Application's resources are operational. Progressing: being created or updated; Degraded: one or more with problems; Suspended: sync paused.

Outside GitOps

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.

Terminal input
argocd app list

It worked when

All Applications have 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.

Terminal input
kubectl get pods -n <NAMESPACE>
kubectl get statefulset -n <NAMESPACE>
kubectl get deploy -n <NAMESPACE>

It worked when

The pods are 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.

Terminal input
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.

Next steps​