Creates an EKS cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/eks/:configUid/machinePools
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Creates an EKS cloud config's machine pool
Request
Path Parameters
configUid stringrequired
Cluster's cloud config uid
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
cloudConfig
poolConfig object
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/cloudconfigs/eks/:configUid/machinePools' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"cloudConfig": {
"awsLaunchTemplate": {
"additionalSecurityGroups": [
{
"arn": "string",
"filters": [
{
"name": "string",
"values": [
"string"
]
}
],
"id": "string"
}
],
"ami": {
"eksOptimizedLookupType": "AmazonLinux",
"id": "string"
},
"imageLookupBaseOS": "string",
"imageLookupFormat": "string",
"imageLookupOrg": "string",
"rootVolume": {
"deviceName": "string",
"encrypted": true,
"encryptionKey": "string",
"iops": 0,
"throughput": 0,
"type": "string"
}
},
"azs": [
"string"
],
"capacityType": "on-demand",
"enableAwsLaunchTemplate": true,
"instanceType": "string",
"rootDeviceSize": 0,
"spotMarketOptions": {
"maxPrice": "string"
},
"subnets": [
{
"az": "string",
"id": "string"
}
]
},
"poolConfig": {
"additionalLabels": {},
"additionalTags": {},
"isControlPlane": true,
"labels": [
"string"
],
"machinePoolProperties": {
"archType": "amd64"
},
"maxSize": 0,
"minSize": 0,
"name": "string",
"nodeRepaveInterval": 0,
"size": 0,
"taints": [
{
"effect": "NoSchedule",
"key": "string",
"timeAdded": "2023-12-01T21:31:48.013Z",
"value": "string"
}
],
"updateStrategy": {
"type": "RollingUpdateScaleOut"
},
"useControlPlaneAsWorker": true
}
}'