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
Authorization*
String
Bearer Token
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
Authorization*
String
Bearer Token
Request Body
data*
Object
Get clusters
GET
{{BASE_URL}}/api/teams/{team}/projects/{project}/clusters
Get all active clusters for a specific project.
Path Parameters
team*
String
Team ID
project*
String
Project ID
Headers
Authorization*
String
Bearer Token
Stop cluster
PUT
{{BASE_URL}}/api/clusters/{id}/stop
Stop cluster by unique id.
Path Parameters
id*
String
Cluster ID
Headers
Authorization*
String
Bearer Token
Start cluster
PUT
{{BASE_URL}}/api/clusters/{id}/start
Start cluster by unique id.
Path Parameters
id*
String
Cluster ID
Headers
Authorization*
String
Bearer Token
Delete cluster
DELETE
{{BASE_URL}}/api/clusters/{id}
Delete a specific cluster by unique id.
Path Parameters
id*
String
Cluster ID
Headers
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
Authorization*
String
Bearer Token
Request Body
data*
Object
Delete pool
DELETE
{{BASE_URL}}/api/pools/{id}
Delete a specific pool by unique id.
Path Parameters
id*
String
Pool ID
Headers
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
id*
String
Pool ID
Headers
Authorization*
String
Bearer Token
Last updated