Kubernetes

The "Kubernetes" section allows for the management of Kubernetes clusters, supporting a multicloud approach. This means that worker nodes can be deployed on one cloud provider, such as Azure, while the master node is hosted on another, like Kraud.Cloud.

CLUSTERS

Get versions

GET {{BASE_URL}}/api/k8s/versions

Get all available versions of Kubernetes.

Headers

Name
Type
Description

Authorization*

String

Bearer Token

[
    {
        "_id": "6548a383e2442d14b6bf969c",
        "name": "latest",
        "displayName": "Latest v1.28.1"
    },
    {
        "_id": "6548a383e2442d14b6bf969d",
        "name": "k8s_1.27.5",
        "displayName": "Kubernetes v1.27.5"
    },
    {
        "_id": "6548a383e2442d14b6bf969e",
        "name": "k8s_1.26.8",
        "displayName": "Kuberbetes v1.26.8"
    }
]

Once the cluster is created, you can download the kubectl file to manage the k8s.

Create k8s

POST {{BASE_URL}}/api/clusters

Cluster Creation. Currently, only ( Kraud.Cloud, Azure ) can be created.

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Request Body

Name
Type
Description

data*

Object

Request payload

Get clusters

GET {{BASE_URL}}/api/teams/{team}/projects/{project}/clusters

Get all active clusters for a specific project.

Path Parameters

Name
Type
Description

team*

String

Team ID

project*

String

Project ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Stop cluster

PUT {{BASE_URL}}/api/clusters/{id}/stop

Stop cluster by unique id.

Path Parameters

Name
Type
Description

id*

String

Cluster ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Start cluster

PUT {{BASE_URL}}/api/clusters/{id}/start

Start cluster by unique id.

Path Parameters

Name
Type
Description

id*

String

Cluster ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Delete cluster

DELETE {{BASE_URL}}/api/clusters/{id}

Delete a specific cluster by unique id.

Path Parameters

Name
Type
Description

id*

String

Cluster ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token


POOLS

The user can add pools to the created cluster and manage the pools.

Create pool

POST {{BASE_URL}}/api/pools

Create a pool to a specific cluster.

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Request Body

Name
Type
Description

data*

Object

Request payload

Delete pool

DELETE {{BASE_URL}}/api/pools/{id}

Delete a specific pool by unique id.

Path Parameters

Name
Type
Description

id*

String

Pool ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token


NODES

The user can delete nodes. Note that a user can only delete a worker node.

Delete node

DELETE {{BASE_URL}}/api/nodes/{id}

Delete a specific node by unique id. Currently, only worker node can be deleted.

Path Parameters

Name
Type
Description

id*

String

Pool ID

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Last updated

Was this helpful?