As new versions of Vault are deployed to a cluster, some services may no longer be required.
To free up the resources used by these deployments, the installer garbage collects these old
deployments by looking at Kubernetes objects that were previously deployed by the installer
and checking whether they are still required by the current version of Vault.
For garbage collection, call the installer with a --garbage_collect argument :
kubectl exec -it -n tm-system vault-installer -- /deployment-tools/install-vault
--garbage_collect
At the end of the installation, the resources in the Vault namespace will be inspected and a
summary displayed of any that are no longer required.
A prompt will then be displayed and you can delete outdated resources automatically by
answering ‘Y’.
Disable this interactive prompt by running --nogc_prompt in conjunction with the
--garbage_collect argument; the prompt will not be shown and the resources will be
deleted automatically.