If I click on the three dots for a pod in the pods list, and select delete, I get this error:
pods “ercot-rabbitmq-0” is forbidden: User “system:serviceaccount:esol-ap31011-dev-namespace:esol-ap31011-dev-user-reader” cannot create resource “pods/eviction” in API group “” in the namespace “esol-ap31011-dev-namespace”
This is true of all pods in all clusters, as far as I can tell. I can delete pods using the command line (kubectl delete pod). Someone else with the identical config file is able to do it without problems in Lens. Any ideas how to fix this?
The error you’re seeing occurs because the service account (esol-ap31011-dev-user-reader) lacks permissions to create pod evictions in the specified namespace, which is required when attempting to delete pods through the UI. To fix this, you’ll need to update the service account’s role or role binding to allow pod eviction operations. You can do this by granting the necessary permissions via a ClusterRole or Role with access to pods/eviction. For more details on handling pod eviction issues, check out this guide.