---
apiVersion: "autoscaling.openshift.io/v1"
kind: "ClusterAutoscaler"
metadata:
  name: "default"
spec:
  balanceSimilarNodeGroups: true
  ignoreDaemonsetsUtilization: false
  skipNodesWithLocalStorage: true
  podPriorityThreshold: -10
  resourceLimits:
    maxNodesTotal: 24
    cores:
      min: 8
      max: 128
    memory:
      min: 4
      max: 256
    # GPU is optional and can be omitted
    gpus:
      - type: nvidia.com/gpu
        min: 0
        max: 16
      - type: amd.com/gpu
        min: 0
        max: 4
  scaleDown:
    enabled: true
    # How long after scale up that scale down evaluation resumes - if omitted defaults to 10 minutes
    delayAfterAdd: 10s
    # How long after node deletion that scale down evaluation resumes - if omitted defaults to 10 seconds
    delayAfterDelete: 10s
    # How long after scale down failure that scale down evaluation resumes - if omitted defaults to 3 minutes
    delayAfterFailure: 10s
