API
Kubernetes
Create node pool

Create a Kubernetes cluster's node pool

  • Name
    post
    Type
    /v1/kubernetes/:uuid/node_pools
    Description

    Send a POST request to create a kubernetes cluster's node pool.

Request

Required Attributes

  • Name
    name
    Type
    string
    Description

    A human-readable name for the node pool.

  • Name
    size
    Type
    string
    Description

    The slug identifier for the type of Stacklet used as workers in the node pool.

  • Name
    count
    Type
    string
    Description

    The number of Stacklet instances in the node pool.

Example

curl -X POST "https://api.simplystack.com/v1/kubernetes/236fa2a0-96d6-4c14-8dbc-08db28f3513b/node_pools" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"name": "another-pool", "size": "b-1vcpu-2gb", "count": 1}'
 

Response

Attributes

See node pool model.

Example

json
{
  "node_pools": [
    {
      "id": "4fb5575c-baf3-4580-9ad4-fa1cec526341",
      "name": "another-pool",
      "size": {
        "slug": "b-1vcpu-2gb",
        "vcpu": 1,
        "disk": 53687091200,
        "memory": 2147483648,
        "category": {
          "name": "basic",
          "premium": false,
          "cpu_model": "INTEL",
          "description": "Basic"
        },
        "bandwidth": 2199023255552,
        "available": true,
        "price_hourly": 0.014,
        "price_monthly": 10.0,
        "snapshots_limit": 1
      },
      "nodes": [
        {
          "id": "af44f920-6b41-4854-a4ec-0515e5a1e159",
          "name": "complicated-cookie-wzbp7v",
          "created_at": "2024-01-08T04:18:17.771223Z"
        }
      ]
    }
  ]
}