fbpx
GEThttps://api.spotinst.io/ocean/aws/k8s/cluster/{OCEAN_CLUSTER_ID}?accountId={ACCOUNT_ID}

Get the configurations for a specified Ocean cluster.

URL Parameters

Parameter Type Description
OCEAN_CLUSTER_ID * String

The Ocean cluster to retrieve the configurations from.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "e1aba6b3-d1be-419f-b19a-9542e09716a5",
        "url": "/ocean/gcp/k8s/cluster/o-210e0c0b?spotinstAccountId=act-7461862f",
        "method": "GET",
        "timestamp": "2018-11-05T15:43:16.306Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:gcp:k8s",
        "items": [
			{
				"autoScaler": {
					"isEnabled": true,
					"cooldown": 30,
					"down": {
						"evaluationPeriods": 3,
						"maxScaleDownPercentage": 30
					},
					"headroom": {
						"cpuPerUnit": 0,
						"memoryPerUnit": 0,
						"gpuPerUnit": 0,
						"numOfUnits": 0
					},
					"resourceLimits": {
						"maxMemoryGib": 1500,
						"maxVCpu": 750
					},
					"isAutoConfig": false
				},
				"capacity": {
					"minimum": 0,
					"maximum": 3,
					"target": 3
				},
				"compute": {
					"networkInterfaces": [
						{
							"network": "default",
							"accessConfigs": [
								{
									"name": "external-nat",
									"type": "ONE_TO_ONE_NAT"
								}
							],
							"aliasIpRanges": [
								{
									"ipCidrRange": "/24",
									"subnetworkRangeName": "gke-test-native-vpc-pods-5cb557f7"
								}
							]
						}
					],
					"backendServices":[
						{
							"backendServiceName":"test-global-tcp",
							"locationType":"global"
						}
					],
					"subnetName": "default",
                	"instanceTypes": {
                		"whitelist": [
                    		"n1-standard-2"
						]
					},
					"launchSpecification": {
						"sourceImage": "https://www.googleapis.com/compute/v1/projects/gke-node-images/global/images/gke-1117-gke12-cos-69-10895-138-0-v190225-pre",
						"metadata": [
						  {
                              "key": "example_key1",
                              "value": "exmample_value1"
                          },
                          {
                              "key": "example_key2",
                              "value": "example_value2"
                          }
						],
						"tags": [
							"gke-test-native-vpc-5cb557f7-node"
						],
						"ipForwarding": true,
						"serviceAccount": "265168459660-compute@developer.gserviceaccount.com",
						"labels": [
							{
								"key": "spotinst-gke-original-node-pool",
								"value": "test-native-vpc__default-pool"
							}
						],
						"rootVolumeSizeInGb": 100
					},	
					"availabilityZones": [
						"us-central1-a"
					]
				},
				"createdAt": "2018-11-04T12:48:32.000+0000",
				"updatedAt": "2018-11-04T12:49:12.000+0000"
			}
		],
        "count": 1
    }
}