GEThttps://api.spotinst.io/ocean/gcp/k8s/cluster/{OCEAN_ID}/rightSizing/resourceSuggetsion?namespace={NAMESPACE_NAME}&accountId={ACCOUNT_ID}

Get right-sizing recommendations for an Ocean cluster.

URL Parameters

Parameter Type Description
OCEAN_ID * String

The Ocean cluster ID you want to query

Example: oseg-1234
NAMESPACE_NAME String

For K8S, namespace is an optional query param which filters the retrieved resources

ACCOUNT_ID * String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:ocean:gcp:k8s:cluster:rightSizing:resourceSuggestion",
    "items": [
      {
        "deploymentName": "dns-controller",
        "namespace": "kube-system",
        "suggestedCPU": 1,
        "suggestedMemory": 19,
        "requestedCPU": 50,
        "requestedMemory": 50
      },
      {
        "deploymentName": "kube-dns",
        "namespace": "kube-system",
        "suggestedCPU": 2,
        "suggestedMemory": 34,
        "requestedCPU": 260,
        "requestedMemory": 109
      }
    ],
    "count": 2
  }
}