If you have deployed extensions that you no longer require, you can delete them from management clusters and Tanzu Kubernetes clusters.
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 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
Delete the Dex extension.
kubectl delete -f authentication/dex/dex-extension.yaml
kubectl delete app dex -n tanzu-system-auth
Delete the Dex namespace.
kubectl delete -f authentication/dex/namespace-role.yaml
Delete the Gangway extension.
kubectl delete -f authentication/gangway/gangway-extension.yaml
kubectl delete app gangway -n tanzu-system-auth
Delete the Gangway namespace.
kubectl delete -f authentication/gangway/namespace-role.yaml
If you delete all extensions from a cluster, you can remove the common extensions utilities.
If the extensions are deployed a Tanzu Kubernetes cluster, optionally delete the
Do not delete
cert-manager from management clusters.
kubectl delete -f ../cert-manager/
Delete the Kapp controller.
kubectl delete -f kapp-controller.yaml
Delete the Tanzu Mission Control extension manager.
kubectl delete -f tmc-extension-manager.yaml