This topic describes how to delete extensions deployed in prior versions of Tanzu Kubernetes Grid, v1.3 or earlier. You can do this after you have installed the corresponding packages to the same cluster, for example you can delete a legacy Contour extension after deploying the Contour package using
tanzu package install.
Note: If you are migrating extensions to packages, follow the deletion steps in Migrate Tanzu Kubernetes Grid Extensions to Packages instead of the procedures below to avoid data loss.
In a terminal, navigate to the folder that contains the unpacked Tanzu Kubernetes Grid extension manifest files,
Run all of the commands in these procedures from this location.
Set the context of
kubectl to the management cluster or Tanzu Kubernetes cluster on which the extension is deployed.
kubectl config use-context contour-test-admin@contour-test
IMPORTANT: For all of the extensions, do not delete
namespace-role.yaml before the application has been fully deleted. This leads to errors due to the service account that is used by
kapp-controller being deleted.
Delete the Contour extension.
kubectl delete -f ingress/contour/contour-extension.yaml
Delete the Contour application.
kubectl delete app contour -n tanzu-system-ingress
Delete the Contour namespace.
kubectl delete -f ingress/contour/namespace-role.yaml
Delete the Fluent Bit extension.
kubectl delete -f logging/fluent-bit/fluent-bit-extension.yaml
Delete the Fluent Bit application.
kubectl delete app fluent-bit -n tanzu-system-logging
Delete the Fluent Bit namespace.
kubectl delete -f logging/fluent-bit/namespace-role.yaml
Delete the Prometheus extension.
kubectl delete -f monitoring/prometheus/prometheus-extension.yaml
Delete the Prometheus application.
kubectl delete app prometheus -n tanzu-system-monitoring
Delete the Prometheus namespace.
kubectl delete -f monitoring/prometheus/namespace-role.yaml
Delete the Grafana extension.
kubectl delete -f monitoring/grafana/grafana-extension.yaml
kubectl delete app grafana -n tanzu-system-monitoring
Delete the Grafana namespace.
kubectl delete -f monitoring/grafana/namespace-role.yaml
Delete the External DNS extension.
kubectl delete -f registry/dns/external-dns-extension.yaml
kubectl delete app external-dns -n tanzu-system-registry
Delete the External DNS namespace.
kubectl delete -f dns/external-dns/namespace-role.yaml
Delete the Harbor extension.
kubectl delete -f registry/harbor/harbor-extension.yaml
kubectl delete app harbor -n tanzu-system-registry
Delete the Harbor namespace.
kubectl delete -f registry/harbor/namespace-role.yaml
If you delete all extensions from a cluster, you can remove common extensions utilities.
If the extensions are deployed on a Tanzu Kubernetes cluster, optionally delete the
kubectl delete -f ../cert-manager/
Do not delete
cert-manager from management clusters.