nutanix-cloud-native / ndb-operator

Nutanix NDB Kubernetes Operator
Apache License 2.0
12 stars 24 forks source link

Database Size must not exceed Namespace remaining Storage Quota #42

Open abdennour opened 1 year ago

abdennour commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.