feat: add HPA for k8s resources
Description
Bump Tutor to support Kubernetes Horizontal Pod Autoscaling, as per https://grove.opencraft.com/discoveries/0006-scaling-deployments/#proposed-solution defines.
Supporting information
Testing instructions
Steps to test the changes:
- Run
cd control
- Run
./kubectl --namespace=periodic-master get hpa
- Validate that the following resources are listed
$ kubectl --namespace=periodic-master get hpa
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
cms-hpa Deployment/cms <unknown>/1792Mi, <unknown>/75% 1 2 1 7m22s
cms-worker-hpa Deployment/cms-worker <unknown>/1792Mi, <unknown>/75% 1 4 1 7m21s
lms-hpa Deployment/lms <unknown>/1792Mi, <unknown>/75% 1 2 1 7m21s
lms-worker-hpa Deployment/lms-worker <unknown>/1792Mi, <unknown>/75% 1 4 1 7m20s
Dependencies
Screenshots
N/A
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSION
in ci_vars.yml is updated -
The grove-template repository is updated
Additional context
N/A
Edited by Boros Gábor