Skip to main content

Uninstall from Kubernetes without a Service Mesh

This page removes a Kamiwaza installation from its namespace. The commands use kamiwaza; substitute yours. It does not change the platform around it: the namespace, storage classes, DNS, the metrics API and Argo CD belong to the platform administrator and stay in place.

This is destructive. Uninstalling deletes Kamiwaza's databases, stored objects, and model files along with the platform. Back up anything you need before you begin.

Step 1: Back up​

Export or copy any data you need to keep, such as documents in workrooms, configuration, and anything in the platform databases. Step 3 deletes the platform databases and object store, and they cannot be recovered after it.

Step 2: Remove apps and models​

Remove what you deployed through Kamiwaza while the platform is still running:

  1. Log in as admin.
  2. In the App Garden, stop every deployed app. In the Tool Shed, stop every tool server.
  3. On the Models page, stop every model deployment.
  4. Confirm that all three lists are empty.

If Argo CD manages the installation​

Do not run helm uninstall, and skip step 3. An installation that Argo CD made has no Helm release. One that was moved from Helm still has the old release record, and running helm uninstall on it deletes live resources that Argo CD then applies again. Instead:

  1. Have whoever administers Argo CD delete the Application together with its resources. With the resources-finalizer.argocd.argoproj.io finalizer from the install, deleting the Application does that. Wait until they confirm the Application is gone.
  2. Argo CD leaves behind what it did not apply, the same as on every environment. The list is in If Argo CD manages the installation on the Istio uninstall page. Continue with step 4, then run the cleanup commands from that list, then step 5.

Step 3: Uninstall the release​

Run as the installer identity. This deletes the volume claims for the platform databases and the object store; step 4 describes what happens to the disks behind them:

helm uninstall kamiwaza --namespace kamiwaza --wait --timeout 15m

Step 4: Delete the remaining volumes​

First delete the Service or Ingress you created to publish the edge. It is not part of the release, and neither Helm nor Argo CD removes it. For the example Service:

kubectl -n kamiwaza delete service kamiwaza-edge-public --ignore-not-found

Then the volumes.

Two kinds of volume outlive the release: the model registry cache, which the chart keeps on purpose, and the configuration store's volumes, which Kubernetes keeps for any StatefulSet. Delete them:

kubectl -n kamiwaza get persistentvolumeclaims
kubectl -n kamiwaza delete persistentvolumeclaims --all

Whether the underlying disks are also deleted depends on the StorageClass's reclaimPolicy. With Retain, the platform administrator deletes the released PersistentVolumes.

Step 5: Verify​

Run as the platform administrator, since the installer identity may not be able to list every kind:

kubectl api-resources --verbs=list --namespaced -o name \
| grep -v -E '^events(\.events\.k8s\.io)?$' \
| xargs -n 1 kubectl -n kamiwaza get --ignore-not-found -o name 2>/dev/null

Expect only the platform prerequisites, what you created for the install, and what Kubernetes creates in every namespace:

  • the installer's ServiceAccount and RoleBinding;
  • the kamiwaza-license and kamiwaza-tls Secrets, and your pull Secret if you use one;
  • the Secrets Kamiwaza generated (its keys, passwords and certificates), the finished Jobs kamiwaza-namespace-prepare and kamiwaza-keycloak-fips-migration (if it ran) with their pods, and the kamiwaza-namespace-state ConfigMap. helm uninstall leaves the generated Secrets, so that a reinstall into the same namespace finds and reuses them. The one exception is kamiwaza-user-admin, which a pre-delete hook removes. The kamiwaza-svc-credentials Secret and the kamiwaza-trust-bundle ConfigMap stay as well, and within an hour of the last install or upgrade so can the finished Job core-jwt-public-key;
  • the kube-root-ca.crt ConfigMap and the default ServiceAccount.

To install again into the same namespace, remove the generated Secrets only together with the volumes from step 4, never one without the other. A generated database password with no Secret, next to a volume that still holds the database, makes the next install stop in kamiwaza-namespace-prepare with REFUSED:

kubectl -n kamiwaza delete secret -l kamiwaza.ai/generated-secret=true

If anything else remains, contact Kamiwaza support with the list before reinstalling into the same namespace.

Removing the platform prerequisites​

If Kamiwaza will not be installed again, the platform administrator can remove what was prepared for it, following their own procedures for storage, DNS, and certificates:

  • the kamiwaza namespace, which removes the installer identity, license and edge certificate Secrets, and everything else in it:

    kubectl delete namespace kamiwaza
  • the Argo CD project and repository registration, if they serve only Kamiwaza;

  • the DNS records for the Kamiwaza domain, and any load balancer or ingress configuration outside the namespace that pointed at the edge.

To install again after deleting the namespace, start from Platform Prerequisites.