Hi! I encountered an issue where my flows were fai...
# ask-community
k
Hi! I encountered an issue where my flows were failing with the following error message:
Copy code
namespaces "kube-system" is forbidden: User "system:serviceaccount:<namespace>:prefect-worker" cannot get resource "namespaces" in API group "" in the namespace "kube-system"
To resolve this, I added the service account name to the worker pool through the UI. I also updated the
prefect-worker/values.yaml
file to include the service account name and redeployed. After redeployment, the flows now run successfully, but I still receive a similar error message immediately before each task runs:
Copy code
namespaces "kube-system" is forbidden: User "system:serviceaccount:<namespace>:<role>" cannot get resource "namespaces" in API group "" in the namespace "kube-system"
Did I misconfigure by adding the service account name directly to the
values.yaml
file in my Helm deployment?