{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-cluster-autoscaler-schema.json",
  "title": "ClusterAutoscaler",
  "description": "Cluster-wide autoscaling configuration.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-ocm-clusters-mgmt-openapi.yml#/components/schemas/ClusterAutoscaler",
  "properties": {
    "kind": {
      "description": "Indicates the type of this object. Will be 'ClusterAutoscaler' if this is a complete object or 'ClusterAutoscalerLink' if it is just a link.",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier of the object.",
      "type": "string"
    },
    "href": {
      "description": "Self link.",
      "type": "string"
    },
    "balance_similar_node_groups": {
      "description": "BalanceSimilarNodeGroups enables/disables the\n`--balance-similar-node-groups` cluster-autoscaler feature.\nThis feature will automatically identify node groups with\nthe same instance type and the same set of labels and try\nto keep the respective sizes of those node groups balanced.",
      "type": "boolean"
    },
    "balancing_ignored_labels": {
      "description": "This option specifies labels that cluster autoscaler should ignore when considering node group similarity.\nFor example, if you have nodes with \"topology.ebs.csi.aws.com/zone\" label, you can add name of this label here\nto prevent cluster autoscaler from splitting nodes into different node groups based on its value.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ignore_daemonsets_utilization": {
      "description": "Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. false by default.",
      "type": "boolean"
    },
    "log_verbosity": {
      "description": "Sets the autoscaler log level.\nDefault value is 1, level 4 is recommended for DEBUGGING and level 6 will enable almost everything.",
      "type": "integer",
      "format": "int32"
    },
    "max_node_provision_time": {
      "description": "Maximum time CA waits for node to be provisioned.",
      "type": "string"
    },
    "max_pod_grace_period": {
      "description": "Gives pods graceful termination time before scaling down.",
      "type": "integer",
      "format": "int32"
    },
    "pod_priority_threshold": {
      "description": "To allow users to schedule \"best-effort\" pods, which shouldn't trigger\nCluster Autoscaler actions, but only run when there are spare resources available,\nMore info: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption.",
      "type": "integer",
      "format": "int32"
    },
    "resource_limits": {
      "description": "Constraints of autoscaling resources.",
      "$ref": "#/$defs/AutoscalerResourceLimits"
    },
    "scale_down": {
      "description": "Configuration of scale down operation.",
      "$ref": "#/$defs/AutoscalerScaleDownConfig"
    },
    "skip_nodes_with_local_storage": {
      "description": "Enables/Disables `--skip-nodes-with-local-storage` CA feature flag. If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. true by default at autoscaler.",
      "type": "boolean"
    }
  },
  "$defs": {
    "AutoscalerResourceLimits": {
      "properties": {
        "gpus": {
          "description": "Minimum and maximum number of different GPUs in cluster, in the format <gpu_type>:<min>:<max>.\nCluster autoscaler will not scale the cluster beyond these numbers. Can be passed multiple times.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutoscalerResourceLimitsGPULimit"
          }
        },
        "cores": {
          "description": "Minimum and maximum number of cores in cluster, in the format <min>:<max>.\nCluster autoscaler will not scale the cluster beyond these numbers.",
          "$ref": "#/$defs/ResourceRange"
        },
        "max_nodes_total": {
          "description": "Maximum number of nodes in all node groups.\nCluster autoscaler will not grow the cluster beyond this number.",
          "type": "integer",
          "format": "int32"
        },
        "memory": {
          "description": "Minimum and maximum number of gigabytes of memory in cluster, in the format <min>:<max>.\nCluster autoscaler will not scale the cluster beyond these numbers.",
          "$ref": "#/$defs/ResourceRange"
        }
      }
    },
    "AutoscalerResourceLimitsGPULimit": {
      "properties": {
        "range": {
          "$ref": "#/$defs/ResourceRange"
        },
        "type": {
          "description": "The type of GPU to associate with the minimum and maximum limits.\nThis value is used by the Cluster Autoscaler to identify Nodes that will have GPU capacity by searching\nfor it as a label value on the Node objects. For example, Nodes that carry the label key\n`cluster-api/accelerator` with the label value being the same as the Type field will be counted towards\nthe resource limits by the Cluster Autoscaler.",
          "type": "string"
        }
      }
    },
    "AutoscalerScaleDownConfig": {
      "properties": {
        "delay_after_add": {
          "description": "How long after scale up that scale down evaluation resumes.",
          "type": "string"
        },
        "delay_after_delete": {
          "description": "How long after node deletion that scale down evaluation resumes, defaults to scan-interval.",
          "type": "string"
        },
        "delay_after_failure": {
          "description": "How long after scale down failure that scale down evaluation resumes.",
          "type": "string"
        },
        "enabled": {
          "description": "Should cluster-autoscaler scale down the cluster.",
          "type": "boolean"
        },
        "unneeded_time": {
          "description": "How long a node should be unneeded before it is eligible for scale down.",
          "type": "string"
        },
        "utilization_threshold": {
          "description": "Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down.",
          "type": "string"
        }
      }
    },
    "ResourceRange": {
      "properties": {
        "max": {
          "type": "integer",
          "format": "int32"
        },
        "min": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}