{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linode/json-schema/linode-lkecluster-request-schema.json",
  "title": "LKEClusterRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linode-linode-kubernetes-engine-lke-api-openapi.yml#/components/schemas/LKEClusterRequest",
  "type": "object",
  "required": [
    "label",
    "region",
    "k8s_version",
    "node_pools"
  ],
  "properties": {
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "The label for the new cluster."
    },
    "region": {
      "type": "string",
      "description": "The region for the cluster."
    },
    "k8s_version": {
      "type": "string",
      "description": "The Kubernetes version for the cluster."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags for the cluster."
    },
    "node_pools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NodePoolRequest"
      },
      "description": "Node pool configurations for the cluster."
    },
    "control_plane": {
      "type": "object",
      "properties": {
        "high_availability": {
          "type": "boolean",
          "description": "Whether to enable high availability for the control plane."
        }
      }
    }
  },
  "$defs": {
    "NodePoolRequest": {
      "type": "object",
      "required": [
        "type",
        "count"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The Linode type for nodes in this pool."
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "description": "The number of nodes in this pool."
        },
        "autoscaler": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Whether to enable the autoscaler."
            },
            "min": {
              "type": "integer",
              "description": "The minimum number of nodes."
            },
            "max": {
              "type": "integer",
              "description": "The maximum number of nodes."
            }
          }
        }
      }
    }
  }
}