Issue
Kubernetes resource can be undeletable due to random errors. In this case, the secret
is undeletable. Even you use --force
and --grace-period=0
on delete command, the resource is still there without deleting.
Solution
Referring to the official doc about force deletion of pod, modifying the metadata.finalizers
can help to remove the resource.
Simply execute the command below to modify your resource.