Skip to main content
Version 3.0

Remove without losing
what needs to stay.

How to take a component, or the whole platform, out of a cluster: what to save first, the right path for each installation method, what each chart leaves behind on purpose, and the final cleanup of volumes, CRDs, and namespace.

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

Uninstalling means removing the Helm release or the Application of each component, in the reverse order of the installation. What stays afterwards varies by chart: some keep PVCs and Secrets on purpose, others delete the volumes together with the release, such as the Airflow DAGs volume and the CloudBeaver workspace. PVs, snapshots, CRDs, and namespace are separate decisions, made after the backups.

Your environment

If you fill in your environment details here, examples and commands on the page use what you entered. The Helm release name and the Argo CD Application name are those of the component you are removing now.

What stays after the removal varies by chart

Some charts keep PVCs and Secrets on purpose. Others delete the volumes with the release, such as the Airflow DAGs volume and the CloudBeaver workspace. Take the backups first. Scenario 2 shows what each chart keeps. PVs, snapshots, and namespace are evaluated separately, in each scenario. Before any removal, identify how the component was deployed: a Helm release comes out with helm uninstall. An Argo CD Application comes out through the Git repository (kit) or with argocd app delete. Do not mix the flows unnecessarily.

Scenarios​

Identify how it was installed, back up, export values, map volumes and CRDs.

You are going to remove a component, or the whole environment, and do not yet know for sure how it was installed or what needs to be preserved. This stage answers both questions: the removal path depends on the installation method, and everything that has state (database, tables, DAGs, metadata, policies) needs a copy first.

Helm release

Appears in helm list. Comes out with helm uninstall: scenario 2.

Application

Appears in argocd app list. Installed by the GitOps kit, it comes out through the repository. Standalone, with argocd app delete: scenario 3.

CRDs

Cluster-scoped resources, installed by tdp-crds. They keep existing after the releases and Applications. They only go out in a complete uninstallation.

Identify how the component was installed

Know whether the main removal is helm uninstall or through Argo CD.

Terminal input
helm list -n <NAMESPACE>
argocd app list

It worked when

The component appears in one of the two listings. If it appears as a Helm release, follow scenario 2. As an Application, scenario 3.
$ helm list -n tdp
NAME            NAMESPACE          REVISION  UPDATED                                STATUS    CHART
tdp-postgresql  tdp                1         2026-03-25 07:55:41.058865 -0300 -03  deployed  tdp-postgresql-…

Back up the data

A copy of everything that has state and needs to be preserved.

Before removing, make a copy of the data you want to preserve. Some charts delete volumes together with the release, such as the Airflow DAGs volume and the CloudBeaver workspace: scenario 2 shows what each chart keeps. The volumes step, below, creates the snapshots.

Export the Helm release values

The values file of each release, for a future reinstallation.

Terminal input
# One release
helm get values <RELEASE_NAME> -n <NAMESPACE> -o yaml > <RELEASE_NAME>-values-backup.yaml

# All releases in the namespace
for release in $(helm list -n <NAMESPACE> -q); do
helm get values "$release" -n <NAMESPACE> -o yaml > "${release}-values-backup.yaml"
echo "Backup de $release concluído"
done

This file contains the values overridden during the installation or update. To check all the parameters the chart accepts, use helm show values on the corresponding chart. In an installation through the GitOps kit, the values are already versioned in current/.

It worked when

The backup file holds the values applied to the release, as in the example.
$ helm get values tdp-postgresql -n tdp -o yaml
primary:
persistence:
  size: 2Gi
resources:
  limits:
    cpu: 1200m
    memory: 2Gi
  requests:
    cpu: 600m
    memory: 1Gi

Map the volumes and create snapshots

Know which PVCs exist and have a snapshot of the critical ones, when the StorageClass supports it.

Terminal input
# Namespace PVCs, or only those of one release
kubectl get pvc -n <NAMESPACE>
kubectl get pvc -n <NAMESPACE> -l app.kubernetes.io/instance=<RELEASE_NAME>

# Does the cluster support snapshots?
kubectl get volumesnapshotclass

# One snapshot per critical PVC
kubectl apply -f - <<EOT
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: <PVC_NAME>-final-snapshot
namespace: <NAMESPACE>
spec:
volumeSnapshotClassName: <SNAPSHOT_CLASS>
source:
persistentVolumeClaimName: <PVC_NAME>
EOT

kubectl get volumesnapshot -n <NAMESPACE>

It worked when

Each VolumeSnapshot appears with READYTOUSE equal to true.
$ kubectl get pvc -n tdp
NAME                                       STATUS  VOLUME                                    CAPACITY  ACCESS MODES  STORAGECLASS  …
data-tdp-postgresql-0                      Bound   pvc-96e86693-898e-48e0-b09f-0d1498bb17f8  1Gi       RWO           local-path    …
data-tdp-postgresql-v2-0                   Bound   pvc-19ab24d6-1327-46f4-823b-567e865354f1  1Gi       RWO           local-path    …

Evaluate the CRDs, if the removal is of the whole platformOpcional

Know which custom resources still exist before thinking about removing CRDs.

Terminal input
kubectl get crd

The types installed by tdp-crds are those of the platform operators: Argo CD, Strimzi, NiFiKop, Altinity ClickHouse Operator, OpenMetadata (OMJob Operator), cert-manager, and licensing (PlatformLicense and LicensePolicy). Before removing a CRD, confirm that all the components that depend on it have already been removed and that there are no custom resources left.

caution

Remove CRDs only in a complete platform uninstallation or in a controlled administrative cleanup. Removing a CRD also removes the corresponding custom API and can affect resources that still exist in the cluster.

Summary​

SituationMain pathNote
Component installed directly via Helmhelm uninstall <RELEASE_NAME> -n <NAMESPACE>Use when there is a real Helm release
Component installed by the GitOps kitdelete current/<APPLICATION_NAME>/ and git pushArgo CD prunes the Application and runs the cleanup hooks
Standalone Argo CD Applicationargocd app delete <APPLICATION_NAME> --cascadeRemoves the Application and the managed resources
Whole platform via Helmsequence of helm uninstall in the reverse order of the installationThen: tdp-argo, tdp-operator, tdp-license, the resources created outside Helm and, last, the CRDs
Whole platform via Argo CDdelete current/tdp-*/ and git pushPVCs and PVs may require manual cleanup
License removalhelm uninstall tdp-license -n tdp-system and kubectl delete platformlicenses,licensepolicies -A --allAfter the components, Argo CD, and the operators
Removal of Argo CD itselfhelm uninstall tdp-argocd -n <ARGOCD_NAMESPACE>After the Applications are removed; with the GitOps kit, the release is named after the chart, tdp-argo
Persistent data cleanupkubectl delete pvc … and, if necessary, kubectl delete pv …Manual and destructive step
Namespace cleanupkubectl delete namespace <NAMESPACE>Only when the namespace is dedicated to the removed environment

Next steps​