docs
api
UK8S Service(UK8S)
AddUK8SNodeGroup

Add UK8S Node Pool - AddUK8SNodeGroup

Overview

Add UK8S Node Pool

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is AddUK8SNodeGroup.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
NodeGroupNamestringNode Pool NameYes
ClusterIdstringCluster IDYes
ImageIdstringImage IDNo
MachineTypestringCloud host machine type. Enumeration values ["N", "C", "G", "O", "OS"]. Refer to Cloud host machine type description.No
MinimalCpuPlatformstringLowest CPU platform, enumeration values ["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", “Amd/Epyc2”, "Amd/Auto"], the default value is "Intel/Auto".No
CPUintNumber of GPU card cores. Only GPU models support this field (optional range related to MachineType+GpuType).No
MemintMemory size. Unit: MBNo
GpuTypestringGPU TypeNo
GPUintNumber of GPU Card CoresNo
BootDiskTypestringDisk TypeNo
DataDiskSizeintData Disk SizeNo
DataDiskTypestringDisk TypeNo
TagstringBusiness GroupNo
ChargeTypestringBilling ModeNo
BootDiskSizeintSystem disk size, in GB. Default is 40. Range: [40, 500]. Please note that SSD local disk cannot be adjusted.No
SubnetIdstringSubnet ID. The default is the subnet ID filled in when the cluster is created, or you can fill in the subnet ID within the same VPC as the cluster.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
NodeGroupIdstringNode Pool IDYes

Example

Request Example

https://api.surfercloud.com/?Action=AddUK8SNodeGroup
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=erWPRmTL
&NodeGroupName=sDJQamTw
&ImageId=SErYualz
&MachineType=ulkHtgvq
&MinimalCpuPlatform=llOxqZiy
&CPU=2
&Mem=9
&GpuType=VHPlqtNm
&GPU=7
&BootDiskType=KLbRaYoT
&DataDiskSize=vNWywYIK
&DataDiskType=zdhEnXgA
&Tag=gsZPoUZG
&ChargeType=yhQCTlsM
&ClusterId=tzEjlYyc
&OrgId=8
&TopOrgId=2
&AzGroupId=6
&BootDiskSize=8
&SubnetId=ZASbmHVG

Response Example

{
  "Action": "AddUK8SNodeGroupResponse",
  "Message": "DMJPRigX",
  "NodeGroupId": "jXKZQgSU",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved