fbpx
POSThttps://api.spotinst.io/ocean/gcp/k8s/cluster/import?groupId={GROUP_ID}&accountId={ACCOUNT_ID}

prerequisites

Perform following validations prior to upgrade executions:

  • Group id cannot be null
  • Group id exists in Elastigroup
  • Group should be a GKE Elastigroup with defined scaling policy
  • Group id is already managed by Ocean

 

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup id you want to upgrade to Ocean

Example: sig-a69b2742
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "e1aba6b3-d1be-419f-b19a-9542e09716a5",
        "url": "/ocean/gcp/k8s/cluster/import?groupId=o-210e0c0b?accountId=act-7461862f",
        "method": "GET",
        "timestamp": "2019-03-05T15:43:16.306Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:gcp:k8s",
        "items": [
			{
				"id": "o-9aa80ccb",
				"name": "ocean test",
				"controllerClusterId": "Test-5837c8ad",
				"gke": {
					"clusterName": "test-native-vpc",
					"masterLocation": "us-central1-a"
				},
				"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"
								}
							]
						}
					],
					"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": "2019-03-31T13:42:43.703+0000",
				"updatedAt": "2019-03-31T13:42:43.703+0000"
			}
		],
        "count": 1
    }
}