service account can't list pods despite a role binding
kubectl auth can-i list pods with --as=system:serviceaccount:tools:deploy-bot says no. I created a Role in tools with pods get/list/watch and a RoleBinding to the deploy-bot service account. The app runs in prod and gets Error from server (Forbidden): pods is forbidden: User system:serviceaccount:tools:deploy-bot cannot list resource pods in API group in the namespace prod. I thought RoleBindings worked across namespaces. What did I get wrong?
4 replies