When attempting to remove fluent-bit package using the command line of "tanzu package installed delete fluent-bit -n tanzu-system-logging" it fails with the error:
"Error: resource deletion failed: Preparing kapp: Getting service account: serviceaccounts "fluent-bit-tanzu-system-logging-sa" not found. Delete failed: Error (see .status.usefulErrorMessage for details)"
vSphere with Tanzu
The service account "fluent-bit-tanzu-system-
As the service account is missing, it is failing to remove the package.
Remove the finalizer from the fluent-bit app as below:
$ kubectl edit app fluent-bit -n tanzu-system-logging
:
metadata:
finalizers:
- finalizers.kapp-ctrl.k14s.io/delete ###<<< Delete this line and save & exit the editor.
generation: 1
name: fluent-bit
namespace: tanzu-system-logging
:
Once the finalizer has been removed, the removal of the fluent-bit package will also be completed automatically.
To re-install the fluent-bit package, follow below link -
https://docs.vmware.com/en/