unikorn-cloud / region

Unikorn Cloud Region Controleler
Apache License 2.0
0 stars 4 forks source link

Quota Management #48

Open spjmurray opened 2 months ago

spjmurray commented 2 months ago

OpenStack will start off with some rather paltry quota defaults which will not allow anything at decent scale.

We absolutely must not just set them to -1, as if CAPO goes wild it will DoS the system and possibly affect other users.

We know requested cluster geometry when its crated or updated, so can tailor the quotas to suit. As such we need some APIs to allow this information to be set in the cloud identity by the Kubernetes service for starters.

As an aside, we need to allow a little wiggle room, as rolling upgrades and general failure management will add additional nodes in before removing old ones to maintain minimum capacity.

spjmurray commented 2 months ago

Note: this is almost definitely going to need some policies adding

spjmurray commented 2 months ago

Note: it's probably best for the API to say "service X needs N of flavor Y, ..." this fulfills a couple requirements: