Returns the estimated cost of the supplied node pool
POSThttps://api.wayfinder.appvia.local/api/v2/costestimates/:provider/nodepool
Returns the estimated cost of the supplied node pool
Request
Path Parameters
Kubernetes provider to estimate node pool for
Query Parameters
Optional region to use when estimating node pool
- application/json
Body
required
The specification for the node pool you want estimating
autoscaling
CloudResourceName is the name of the node pool in the cloud provider. If unpopulated, a sensible default name will be auto-generated for this node pool.
DiskSize is the amount of disk space to assign to the nodes in MBs
Image is the image we should use on the instances of this pool
labels
object
LogicalName is the internally unique name of the NodePool (not in cloud) - Should always be consistent with a single name entry in a Cluster or NodePoolUpdate - Has to be unique across all node pools on the Cluster spec - Will NOT always match the name of the NodePool in cloud - Should be treated as an immutable field
Machine is the instance type of the nodes in the pool
MaxPodsPerNode controls how many pods can be scheduled onto each node in this pool
providerDetails
Size is initial size if autoscaling defined - or the effective size if no autoscaling is enabled
spot
taints
undefined[]
Zones defines a list of cloud specific availability zones where the nodes are permitted to run
Responses
- 200
- 400
- 401
- 403
- 500
An estimate of the costs for the node pool
- application/json
- Schema
- Example (from schema)
Schema
costElements
undefined[]
{
"costElements": [
{
"maxCost": 0,
"minCost": 0,
"name": "string",
"typicalCost": 0
}
],
"maxCost": 0,
"minCost": 0,
"preparedAt": "string",
"typicalCost": 0
}
Validation error of supplied parameters/body
- application/json
- Schema
- Example (from schema)
Schema
fieldErrors
undefined[]
required
{
"code": 0,
"fieldErrors": [
{
"errCode": "string",
"field": "string",
"message": "string"
}
],
"message": "string"
}
If not authenticated
If authenticated but not authorized
A generic API error containing the cause of the error
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL