Class: Node
Extends
any
Constructors
new Node()
new Node(json: KubeNode): Node
Parameters
Parameter | Type |
---|---|
json | KubeNode |
Returns
Inherited from
makeKubeObject<KubeNode>('node').constructor
Defined in
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
apiEndpoint | static | ApiClient <KubeObjectInterface > | - | src/lib/k8s/node.ts:56 |
apiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListSingleNamespaceOptions ) => any | makeKubeObject<KubeNode>('node').apiList | src/lib/k8s/cluster.ts:311 |
className | static | string | makeKubeObject<KubeNode>('node').className | src/lib/k8s/cluster.ts:338 |
getAuthorization? | static | (arg : string , resourceAttrs ?: AuthRequestResourceAttrs ) => any | makeKubeObject<KubeNode>('node').getAuthorization | src/lib/k8s/cluster.ts:340 |
getErrorMessage | static | (err ?: null | ApiError ) => null | string | makeKubeObject<KubeNode>('node').getErrorMessage | src/lib/k8s/cluster.ts:336 |
useApiGet | static | (onGet : (...args : any ) => void , name : string , namespace ?: string , onError ?: (err : ApiError ) => void ) => void | makeKubeObject<KubeNode>('node').useApiGet | src/lib/k8s/cluster.ts:321 |
useApiList | static | (onList : (arg : any []) => void , onError ?: (err : ApiError ) => void , opts ?: ApiListOptions ) => any | makeKubeObject<KubeNode>('node').useApiList | src/lib/k8s/cluster.ts:316 |
useGet | static | (name : string , namespace ?: string , opts ?: object ) => [any , null | ApiError ] & QueryResponse <any , ApiError > | makeKubeObject<KubeNode>('node').useGet | src/lib/k8s/cluster.ts:328 |
Accessors
spec
get spec(): object
Returns
object
podCIDR
podCIDR: string;
taints
taints: object[];
Defined in
status
get status(): object
Returns
object
addresses
addresses: object[];
allocatable
allocatable: object;
allocatable.cpu
cpu: any;
allocatable.ephemeralStorage
ephemeralStorage: any;
allocatable.hugepages_1Gi
hugepages_1Gi: any;
allocatable.hugepages_2Mi
hugepages_2Mi: any;
allocatable.memory
memory: any;
allocatable.pods
pods: any;
capacity
capacity: object;
capacity.cpu
cpu: any;
capacity.ephemeralStorage
ephemeralStorage: any;
capacity.hugepages_1Gi
hugepages_1Gi: any;
capacity.hugepages_2Mi
hugepages_2Mi: any;
capacity.memory
memory: any;
capacity.pods
pods: any;
conditions
conditions: Omit<KubeCondition, "lastProbeTime" | "lastUpdateTime"> & object[];
nodeInfo
nodeInfo: object;
nodeInfo.architecture
architecture: string;
nodeInfo.bootID
bootID: string;
nodeInfo.containerRuntimeVersion
containerRuntimeVersion: string;
nodeInfo.kernelVersion
kernelVersion: string;
nodeInfo.kubeProxyVersion
kubeProxyVersion: string;
nodeInfo.kubeletVersion
kubeletVersion: string;
nodeInfo.machineID
machineID: string;
nodeInfo.operatingSystem
operatingSystem: string;
nodeInfo.osImage
osImage: string;
nodeInfo.systemUUID
systemUUID: string;
Defined in
Methods
getExternalIP()
getExternalIP(): string
Returns
string
Defined in
getInternalIP()
getInternalIP(): string
Returns
string
Defined in
useList()
static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>
Parameters
Parameter | Type |
---|---|
options ? | ApiListOptions |
Returns
[null
| any
[], null
| ApiError
] & QueryListResponse
<KubeList
<any
>, any
, ApiError
>
Inherited from
makeKubeObject<KubeNode>('node').useList
Defined in
useMetrics()
static useMetrics(): [null | KubeMetrics[], null | ApiError]
Returns
[null
| KubeMetrics
[], null
| ApiError
]