Docs
api
UK8S Service(UK8S)
AddUK8SPHostNode

Add Node Node (Physical Cloud Host) - AddUK8SPHostNode

Overview

Add one or more physical cloud host type nodes to the UK8S cluster.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is AddUK8SPHostNode.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
RegionstringRegion. See List of Regions and Availability ZonesYes
ClusterIdstringUK8S Cluster ID. Can be obtained from the UK8S control panel.Yes
CountintThe maximum number of Node nodes that can be created, the value range is [1,10].Yes
PasswordstringNode node password. Please set the password according to the field specification. The password needs to be encoded with base64, as follows: # echo -n Password1 | base64Yes
ChargeTypestringBilling mode. Enumerated values are:

> Year, pay annually;

> Month, pay monthly;

The default is monthly.
Yes
QuantityintPurchase duration. Default: 1. When paying monthly, this parameter is 0, representing purchase until the end of the month.No
LabelsstringNode labels. In the form of key=value, multiple groups are separated by ”,”, up to 5 groups. For example, env=pro,type=gameNo
MaxPodsintDefault is 110, it is recommended to be less than or equal to 110 in the production environment.No
TypestringPhysical machine type, default is: db-2 (Basic-SAS-V3)No
RaidstringRaid configuration, default Raid10 supports: Raid0, Raid1, Raid5, Raid10, NoRaidNo
NICstringNetwork environment, optional gigabit: 1G, ten gigabit: 10G, default 1G.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
ImageIdstringImage Id, if not filled, the backend program will automatically select an available Image Id. It supports user-defined images, and user-defined images must be based on basic images.No
DisableSchedulebooleanIndicates whether to temporarily disable the node after adding it. Enter “true” to disable, enter anything else or leave it blank to not disable.No
InitScriptstringUser-defined Shell script. The difference from UserData is that InitScript is executed only after the node initialization is completed.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

Example

Request Example

https://api.dezai.com/?Action=AddUK8SPHostNode
&Zone=mASwhOwS
&ProjectId=TtFuuCvl
&Region=ephfLtkg
&ClusterId=gCCKbTeA
&CPU=7
&Count=3
&Password=UiYvduOo
&Mem=2
&ChargeType=wmcAhsnG
&BootDiskType=zmNhZzRf
&DataDiskType=GKVjMCWI
&DataDiskSize=fAJBjatE
&Quantity=8
&MachineType=hYudGdxE
&MinmalCpuPlatform=pXPBzsJd
&GpuType=ilPxSGRq
&GPU=9
&Labels=JUQASjlI
&Kubelet.MaxPods=1
&Type=qxQEPxPH
&Raid=ypSBWSeV
&NIC=gzqVBNpS
&Type=fTtSpRXy
&Raid=iUVCnclz
&NIC=YctuhWeH
&SubnetId=VlAVQbbb
&ImageId=LQuioHZk
&DisableSchedule=jEVHAJOV
&InitScript=LzBmCbai

Response Example

{
  "Action": "AddUK8SPHostNodeResponse",
  "Message": "ovAEHXng",
  "RetCode": 0
}