> ## 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 node pool

> Add a node pool to a cluster



## OpenAPI

````yaml api-docs/archived/arc.json post /v1/regions/{region}/compute/clusters/{clusterId}/nodepools
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/{clusterId}/nodepools:
    post:
      tags:
        - Node Pools
      summary: Create node pool
      description: Add a node pool to a cluster
      operationId: createNodePool
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
        - name: clusterId
          in: path
          required: true
          schema:
            type: string
          description: Cluster identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                machineType:
                  type: string
                replicas:
                  type: number
                labels:
                  type: object
                  nullable: true
                  additionalProperties:
                    type: string
              required:
                - name
                - machineType
                - replicas
      responses:
        '201':
          description: Node pool created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/NodePool'
components:
  schemas:
    NodePool:
      type: object
      description: Cluster node pool
      properties:
        id:
          type: string
          description: Node pool identifier
        name:
          type: string
          description: Node pool name
        clusterId:
          type: string
          description: Parent cluster
        machineType:
          type: string
          description: Machine type/flavor
        replicas:
          type: number
          description: Desired replica count
        currentReplicas:
          type: number
          description: Current replica count
        status:
          type: string
          enum:
            - provisioning
            - ready
            - scaling
            - error
          description: Node pool status
        labels:
          type: object
          nullable: true
          additionalProperties:
            type: string
        taints:
          type: array
          nullable: true
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
              effect:
                type: string
                enum:
                  - NoSchedule
                  - PreferNoSchedule
                  - NoExecute
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - clusterId
        - machineType
        - replicas
        - status

````