Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roles: add permissions for modifying poddisruptionbudgets in the policy API Group #51

Open
artntek opened this issue Oct 29, 2024 · 1 comment
Assignees

Comments

@artntek
Copy link
Contributor

artntek commented Oct 29, 2024

Update application-context.yaml to add permissions for modifying poddisruptionbudgets in the policy API Group, so it will apply to all new accounts.

Explanation

Default permissions for service account roles currently do not include sufficient access to poddisruptionbudgets in the policy API Group

This access is required in order to install, upgrade and delete some 3rd party helm charts; for example, the latest bitnami Postgresql chart installation currently fails, with:

Error: INSTALLATION FAILED: Unable to continue with install: could not get information
about the resource PodDisruptionBudget "vegbank2-postgresql" in namespace "vegbank":
poddisruptionbudgets.policy "vegbank2-postgresql" is forbidden: User
"system:serviceaccount:vegbank:vegbank" cannot get resource "poddisruptionbudgets" in
API group "policy" in the namespace "vegbank"

Workarounds include manually editing the role for the service account in question, or using the admin service account to install/upgrade/delete (bad practice).

GitHub DataONE K8s repo for reference

@artntek
Copy link
Contributor Author

artntek commented Oct 29, 2024

poddisruptionbudgets explanation:

https://kubernetes.io/docs/tasks/run-application/configure-pdb/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant