Skip to content

Instantly share code, notes, and snippets.

@derekwaynecarr
Created October 8, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekwaynecarr/9c2ba0a941eb8b11c861bbd5aa63b74d to your computer and use it in GitHub Desktop.
Save derekwaynecarr/9c2ba0a941eb8b11c861bbd5aa63b74d to your computer and use it in GitHub Desktop.
ClusterAutoscalerCRD
apiVersion: clusterautoscaling.openshift.io/v1beta1
kind: ClusterAutoscaler
metadata:
name: autoscale-gpu-workers
namespace: openshift-cluster-api
spec:
## the machine set we want to target (used to build --nodes=argument)
scaleTargetRef:
apiVersion: <machineSet>
kind: MachineSet
name: gpu-workers
## lowest we will scale this machine set
minReplicas: 1
## highest we will scale this machine set
maxReplicas: 10
## how often we look
scanInterval: 10s
expander: least-waste
## configure scale down behavior
scaleDown:
enabled: true
delayAfterAdd: 10m
delayAfterDelete:
## configure scale up behavior
scaleUp:
## pods less than this old not considered for scale up
podDelay: 10s
status:
## information on if the autoscaler itself is created and running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment