I am setting up kubernetes cluster on EC2, I have following requirements.
- Support multiple tenants with predefined upper limits(resources utilization).
- Scale up and down cluster based on current usage.
I know point 1 can be achieved by resource-quota, resource-quotas page also talks about scaling up cluster by writing custom controller. Can I simply use it for scaling down as well? Is there any open source implementation available?
Kubernetes provides cluster-autoscaler for autoscaling cluster, does it work when I have multiple namespaces? How does scale down impact resource quota of namespace?
What happens if total available resources are less than sum of resource quota of all namesapces?