Market Problem
- As a Managed OpenShift cluster administrator, I want to use the Priority based expander for cluster-autoscaler to select instance types based on priorities assigned by a user to scaling groups.
The Configuration is based on the values stored in a ConfigMap - flags need to be set on the cluster-auto-scaler --expander=priority .
The user can give a list of expanders in order to have the autoscaler make better choices. for example, we used this in our cost analysis testing --expander=priorty,least-waste
this would first try to use the priority configmap, and if it finds multiple groups it then tries to find the group with the least waste.
apiVersion: v1 kind: ConfigMap metadata: name: cluster-autoscaler-priority-expander namespace: kube-system data: priorities: |- 10: - .*t2\.large.* - .*t3\.large.* 50: - .*m4\.4xlarge.*
- OCM will need to expose the option to do that.
- Hypershift just sets --expander=priorty flag on the autosacler, and OCM will be responsible of creating the cluster-autoscaler-priority-expander configMap , based on customer configuration.
- This feature should be available in CAPA.
Expected Outcomes
- When creating a MachineSet, customers would like to define their preferred instance types with priorities so that if one is not available a fallback instance type option is available down the list. https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md
This needs to work in OpenShift 4.18.z+.
Acceptance Criteria
Add code in HCP to support priority expander- Add code in OCM to support optional configmap field for priority expander - XCMSTRAT-769
- Add code upstream CAPA to support optional configmap field for priority expander -
HOSTEDCP-1728
Documentation Considerations
Documentation will need to be updated to point out the new maximum for ROSA HCP clusters, and any expectations to set with customers.
- clones
-
OCPSTRAT-1106 Enable priority and least-waste expanders for cluster autoscaler
- Closed
- is depended on by
-
HOSTEDCP-1728 ROSA CAPA: support cluster-autoscaler priority based expander configuration in upstream
- Closed