Create cluster
POST/backend/api/cluster/
Host: https://core.ocplanet.cloud
Create cluster.
Request
- application/json
Body
- Array [
- Array [
- ]
- Array [
- ]
- ]
cluster_name string
cluster_version string
image string
networking string
muster_flavor_id string
master_count integer
addons objectrequired
dashboard booleanrequired
metrics booleanrequired
nginx booleanrequired
restriction_api boolean
restriction_ips string
ssh_keys string
node_pools object[]
name stringrequired
flavor_id stringrequired
count integerrequired
autoscale booleanrequired
max_count integernullrequired
is_default booleanrequired
labels object[]required
key stringrequired
values stringrequired
taints object[]required
key stringrequired
value stringrequired
effect NoSchedule | PreferNoSchedule | NoExecuterequired
Responses
- 200
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
cluster_name stringrequired
cluster_version stringrequired
node_pools object[]required
id string
name string
flavor_id string
count integer
autoscale boolean
max_count integernull
is_default boolean
operation_id uuidrequired
{
"cluster_name": "string",
"cluster_version": "string",
"node_pools": [
{
"id": "string",
"name": "string",
"flavor_id": "string",
"count": 0,
"autoscale": true,
"is_default": true
}
],
"operation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
{
"cluster_name": "cluster94260",
"cluster_version": "v1.27.4",
"node_pools": [
{
"name": "cluster94260-nodepool99682",
"flavor_id": "61c79c33-6113-41fd-9d87-594764813c67",
"count": 1,
"autoscale": false,
"max_count": 3,
"is_default": true
}
],
"operation_id": "1bba5e94-2d3f-4023-9bb9-c7213c0d0bef"
}
Loading...