Manage Node Pools
Node pools allow you to manage groups of worker nodes within a Kubernetes cluster. This guide provides an overview of how to list, create, get, and delete node pools.
List Node Pools
- CLI
- API
Use the fluidctl kubernetes node-pools list
command to list all node pools:
fluidctl kubernetes node-pools list
To list all node pools via the API, send a GET
request to the /kubernetes/node-pools
endpoint:
GET /kubernetes/node-pools HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>
Create Node Pool
- CLI
- API
Use the fluidctl kubernetes node-pools create
command to create a new node pool:
fluidctl kubernetes node-pools create --name <pool-name> --cluster <cluster-name> --type <instance-type> --count <count>
--name
: The name of the node pool.--cluster
: The name of the cluster.--type
: The instance type for the nodes.--count
: Number of nodes in the pool.
To create a node pool via the API, send a POST
request to the /kubernetes/node-pools
endpoint:
POST /kubernetes/node-pools HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>
Content-Type: application/json
{
"name": "<pool-name>",
"cluster": "<cluster-name>",
"type": "<instance-type>",
"count": <count>
}
Get Node Pool Details
- CLI
- API
Use the fluidctl kubernetes node-pools get
command to get details for a specific node pool:
fluidctl kubernetes node-pools get --id <node-pool-id>
To get details for a specific node pool via the API, send a GET
request to the /kubernetes/node-pools/{id}
endpoint:
GET /kubernetes/node-pools/<node-pool-id> HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>
Delete Node Pool
- CLI
- API
Use the fluidctl kubernetes node-pools delete
command to delete a node pool:
fluidctl kubernetes node-pools delete --id <node-pool-id>
To delete a node pool via the API, send a DELETE
request to the /kubernetes/node-pools/{id}
endpoint:
DELETE /kubernetes/node-pools/<node-pool-id> HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>