Docs
api
UK8S Service(UK8S)
DescribeUK8SNode

Get UK8S Node Details - DescribeUK8SNode

Overview

Used to get UK8S node details

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUK8SNode.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
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ClusterIdstringUK8S Cluster IdYes
NamestringK8S Node IP or Node IDYes

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
NamestringNode NameYes
Labelsarray[string]An array of strings, each item is a label similar to “kubernetes.io/arch=amd64”."""
Yes
Annotationsarray[string]An array of strings, each item is an annotation similar to “node.alpha.kubernetes.io/ttl=0”.Yes
CreationTimestampintTimestamp, unit is secondsYes
ProviderIDstringString, such as: “UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc”Yes
KernelVersionstringKernel version, such as: ‘4.19.0-6.el7.ucloud.x86_64’Yes
OSImagestringOperating system type, such as: “CentOS Linux 7 (Core)Yes
ContainerRuntimeVersionstringVersion of container runtime, such as:
“docker://18.9.9
”.
Yes
KubeletVersionstringkubelet versionYes
KubeProxyVersionstringkubeproxy versionYes
InternalIPstringInternal IP AddressYes
HostnamestringHostnameYes
AllocatedPodCountintNumber of Pods assigned to the current nodeYes
PodCapacityintThe maximum number of Pods that can be allocated to a nodeYes
UnschedulablebooleanIs scheduling prohibited?Yes
CPUCapacitystringTotal Node CPUYes
MemoryCapacitystringTotal Node MemoryYes
MemoryRequestsstringMemory request amount of Pods allocated on the nodeYes
MemoryRequestsFractionstringThe proportion of memory requests allocated to Pods on the node to the total memory, if the return value is ‘4.5’, it means that the request amount accounts for 4.5% of the total.Yes
MemoryLimitsstringMemory limit of Pods allocated on the nodeYes
MemoryLimitsFractionstringThe proportion of the memory limit allocated to the Pod on the node to the total memory. If the return value is ‘18’, it means that the limit accounts for 18% of the total.Yes
CPURequestsstringCPU request amount of Pods allocated on the nodeYes
CPURequestsFractionstringThe proportion of CPU requests from Pods allocated on the node to the total CPU amountYes
CPULimitsstringCPU limit value of the Pod allocated on the nodeYes
CPULimitsFractionstringThe proportion of the CPU limit value of the Pod allocated on the node to the total CPUYes
Conditionsarray[K8SNodeCondition]Node Status ArrayYes
ContainerImagesarray[string]Array of image names on the nodeYes
Taintsarray[string]An array of strings, each item is a taint similar to “node-role.kubernetes.io/master:NoSchedule”."""
No

Data Model

K8SNodeCondition

Field NameTypeDescription InformationRequired
TypestringCondition types, such as MemoryPressure, DiskPressure, PIDPressure, ReadyNo
StatusstringStatus, False, TrueNo
LastProbeTimestringTime of the last reported statusNo
LastTransitionTimestringLast Status Change TimeNo
ReasonstringReason for status changeNo
MessagestringDescription of status changesNo

Example

Request Example

https://api.dezai.com/?Action=DescribeUK8SNode
&Region=cn-zj
&ProjectId=sElnRLjI
&ClusterId=totqQYHI
&Name=ErXQmXnS

Response Example

{
  "Action": "DescribeUK8SNodeResponse",
  "AllocatedPodCount": 6,
  "Annotations": [
    "tUWHbrau"
  ],
  "CPUCapacity": "tBszdZRU",
  "CPULimits": "nGbRDmDr",
  "CPULimitsFraction": "LbRKZfsS",
  "CPURequests": "cvVLzNiY",
  "CPURequestsFraction": "wlEcpxok",
  "Conditions": [
    {
      "LastProbeTime": "FWAXrjEN",
      "LastTransitionTime": "KLsUrcTC",
      "Message": "VxQgKfIh",
      "Reason": "UGvztFUN",
      "Status": "CtIFlmpX",
      "Type": "mHcsdTJk"
    }
  ],
  "ContainerImages": [
    "txoXMWDk"
  ],
  "ContainerRuntimeVersion": "zBeQNCmz",
  "CreationTimestamp": 9,
  "Hostname": "HBdXzYsk",
  "InternalIP": "pyyLHaZv",
  "KernelVersion": "gClfaDNr",
  "KubeProxyVersion": "LPRmIqRm",
  "KubeletVersion": "bWvoYPZk",
  "Labels": [
    "lJIBSxcK"
  ],
  "MemoryCapacity": "AObOjZst",
  "MemoryLimits": "TGUARMCd",
  "MemoryLimitsFraction": "LvrhQhjA",
  "MemoryRequests": "RslUIMdZ",
  "MemoryRequestsFraction": "WuedwXMx",
  "Message": "sNFzyWny",
  "Name": "OepprctA",
  "OSImage": "wQyBoQPR",
  "PodCapacity": 9,
  "ProviderID": "NfHgjXUd",
  "RetCode": 0,
  "Taints": [
    "RnidVmEy"
  ],
  "Unschedulable": false
}