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

Database Size must not exceed Namespace remaining Storage Quota #42

Open
abdennour opened this issue Dec 5, 2022 · 2 comments
Open

Comments

@abdennour
Copy link

abdennour commented Dec 5, 2022

Is your feature request related to a problem? Please describe.
Yes! there is no limit of DB storage size can be managed/governed from kubernetes side.

Describe the solution you'd like
The operator should check the remaining quota & compare it with the requested storage (spec.databaseInstance.size).

Describe alternatives you've considered
As per now, We plan to use OPA with Gatekeeper to prevent exceeding the quota ( Redhat ACS,..etc)

Additional context
N/A

@manavrajvanshi
Copy link
Contributor

Hi @abdennour, the NDB operator does not allocate storage on the Kubernetes cluster for the provisioned databases. Hence restricting the database size based on the namespace storage quota might not be functionally correct since the database storage is allocated on the Nutanix cluster.
cc: @krunal-jhaveri

@abdennour
Copy link
Author

Hi @manavrajvanshi , always storage is physically outside Kubernetes. But Think about kubernetes like a governance platform. As it can limit cpu & memory ( even this cpu &memory are Nutanix capacity ) , it can also limit storage. There should be away to bring the info of storage ( .status in not .spec ) & make it available for governance & reporting.

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

2 participants