Skip to main content

Class: Node

Extends

  • any

Constructors

new Node()

new Node(json: KubeNode): Node

Parameters

ParameterType
jsonKubeNode

Returns

Node

Inherited from

makeKubeObject<KubeNode>('node').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiClient<KubeObjectInterface>-src/lib/k8s/node.ts:56
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeNode>('node').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeNode>('node').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeNode>('node').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeNode>('node').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeNode>('node').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeNode>('node').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeNode>('node').useGetsrc/lib/k8s/cluster.ts:328

Accessors

spec

get spec(): object

Returns

object

podCIDR
podCIDR: string;
taints
taints: object[];

Defined in

src/lib/k8s/node.ts:62


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

src/lib/k8s/node.ts:58

Methods

getExternalIP()

getExternalIP(): string

Returns

string

Defined in

src/lib/k8s/node.ts:83


getInternalIP()

getInternalIP(): string

Returns

string

Defined in

src/lib/k8s/node.ts:87


useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeNode>('node').useList

Defined in

src/lib/k8s/cluster.ts:327


useMetrics()

static useMetrics(): [null | KubeMetrics[], null | ApiError]

Returns

[null | KubeMetrics[], null | ApiError]

Defined in

src/lib/k8s/node.ts:66