API
Kubernetes
Update cluster

Update a Kubernetes Cluster

  • Name
    put
    Type
    /v1/kubernetes
    Description

    Send a PUT request to update a kubernetes cluster.

Request

Required Attributes

  • Name
    name
    Type
    string
    Description

    New Human-readble name given to the k8s cluster at its creation.

Example

curl -X PUT "https://api.simplystack.com/v1/kubernetes" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"name": "new-name"}'
 

Response

Attributes

See kubernetes cluster model.

Example

json
{
  "kubernetes": {
    "uuid": "236fa2a0-96d6-4c14-8dbc-08db28f3513b",
    "tags": ["k8s:236fa2a0-96d6-4c14-8dbc-08db28f3513b", "k8s"],
    "ipv4": "50.3.80.4",
    "name": "new-name",
    "task": {
      "id": 1,
      "name": "create",
      "description": {
        "progress": "Kubernetes cluster is updating.",
        "completed": "Kubernetes cluster updated."
      }
    },
    "region": {
      "slug": "fra",
      "name": "Frankfurt",
      "features": [
        "vpc",
        "volumes",
        "buckets",
        "databases",
        "kubernetes",
        "floating_ips",
        "load_balancers"
      ],
      "available": true
    },
    "version": {
      "slug": "1-23-0",
      "version": "1.23.0-00",
      "min_vcpu": 1,
      "min_disk": 53687091200,
      "available": true,
      "min_memory": 2147483648
    },
    "endpoint": "https://236fa2a0-96d6-4c14-8dbc-08db28f3513b.k8s.onhubgridcloud.com",
    "created_at": "2024-01-08T04:18:17.689771Z",
    "node_pools": [
      {
        "id": "4fb5575c-baf3-4580-9ad4-fa1cec526341",
        "name": "complicated-cookie",
        "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"
          }
        ]
      }
    ],
    "cluster_subnet": "10.244.0.0/16",
    "service_subnet": "10.245.0.0/16"
  }
}