> ## Documentation Index
> Fetch the complete documentation index at: https://team.k0labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create cluster

> Create a new Kubernetes cluster



## OpenAPI

````yaml api-docs/archived/arc.json post /v1/regions/{region}/compute/clusters
openapi: 3.1.1
info:
  title: Compute API
  version: 1.0.0
  description: >-
    Compute API for the k0rdent Enterprise platform. Provides Kubernetes cluster
    lifecycle management, virtual machine operations, and software-defined
    networking (SDN) including subnets, IPAM, load balancing, peering,
    interconnects, and firewalls.
  contact:
    name: k0rdent Enterprise API Support
    email: api-support@example.com
    url: https://support.example.com
  license:
    name: Proprietary
    url: https://k0rdent.example.com/license
servers:
  - url: ''
    description: For documentation only
  - url: https://api.example.com
    description: Arc API Base URL
  - url: https://api.internal.example.com
    description: Atlas API Base URL
  - url: http://localhost:{port}
    description: Local Development
    variables:
      port:
        default: '4005'
        description: Compute service port
security: []
paths:
  /v1/regions/{region}/compute/clusters:
    post:
      tags:
        - Clusters
      summary: Create cluster
      description: Create a new Kubernetes cluster
      operationId: createCluster
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                projectId:
                  type: string
                kubernetesVersion:
                  type: string
                nodePools:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      machineType:
                        type: string
                      replicas:
                        type: number
                    required:
                      - name
                      - machineType
                      - replicas
              required:
                - name
                - projectId
                - kubernetesVersion
      responses:
        '201':
          description: Cluster created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Cluster'
components:
  schemas:
    Cluster:
      type: object
      description: Kubernetes cluster resource
      properties:
        id:
          type: string
          description: Cluster identifier
        name:
          type: string
          description: Cluster name
        projectId:
          type: string
          description: Parent project
        regionId:
          type: string
          description: Deployment region
        kubernetesVersion:
          type: string
          description: Kubernetes version
        status:
          type: string
          enum:
            - provisioning
            - running
            - updating
            - degraded
            - deleting
            - error
          description: Cluster status
        health:
          type: object
          properties:
            status:
              type: string
              enum:
                - healthy
                - degraded
                - unhealthy
                - unknown
            lastChecked:
              type: string
              format: date-time
        endpoint:
          type: string
          nullable: true
          description: Kubernetes API endpoint
        nodeCount:
          type: number
          description: Total node count
        metadata:
          type: object
          nullable: true
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - projectId
        - regionId
        - kubernetesVersion
        - status
        - createdAt

````