Class: Node
Extends
Constructors
new Node()
new Node(json: KubeNode, cluster?: string): Node
Parameters
Parameter | Type |
---|---|
json | KubeNode |
cluster ? | string |
Returns
Inherited from
Defined in
Properties
Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|---|---|
_clusterName | public | string | undefined | - | - | KubeObject ._clusterName | src/lib/k8s/KubeObject.ts:29 |
jsonData | public | KubeNode | undefined | - | - | KubeObject .jsonData | src/lib/k8s/KubeObject.ts:26 |
_internalApiEndpoint? | static | ApiWithNamespaceClient <KubeObjectInterface > | ApiClient <KubeObjectInterface > | undefined | - | - | KubeObject ._internalApiEndpoint | src/lib/k8s/KubeObject.ts:43 |
apiName | static | string | 'nodes' | Name of the resource, plural, used in API | KubeObject .apiName | - | src/lib/k8s/node.ts:58 |
apiVersion | static | string | 'v1' | Group and version of the resource formatted as "GROUP/VERSION", e.g. "policy.k8s.io/v1". | KubeObject .apiVersion | - | src/lib/k8s/node.ts:59 |
isNamespaced | static | boolean | false | Whether the object is namespaced. | KubeObject .isNamespaced | - | src/lib/k8s/node.ts:60 |
kind | static | string | 'Node' | The kind of the object. Corresponding to the resource kind in Kubernetes. | KubeObject .kind | - | src/lib/k8s/node.ts:57 |
readOnlyFields | static | string [] | [] | Readonly field defined as JSONPath paths | - | KubeObject .readOnlyFields | src/lib/k8s/KubeObject.ts:28 |
Accessors
cluster
get cluster(): string
set cluster(cluster: string): void
Parameters
Parameter | Type |
---|---|
cluster | string |
Returns
string
Inherited from
Defined in
detailsRoute
get detailsRoute(): string
Returns
string
Inherited from
Defined in
isNamespaced
get isNamespaced(): boolean
Returns
boolean
Inherited from
Defined in
kind
get kind(): any
Returns
any
Inherited from
Defined in
listRoute
get listRoute(): string
Returns
string
Inherited from
Defined in
metadata
get metadata(): KubeMetadata
Returns
Inherited from
Defined in
pluralName
get pluralName(): string
Returns
string
Inherited from
Defined in
spec
get spec(): object
Returns
object
podCIDR
podCIDR: string;
taints
taints: object[];
Defined in
status
get status(): object
Returns
object
addresses?
optional addresses: object[];
allocatable?
optional 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?
optional 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?
optional conditions: Omit<KubeCondition, "lastProbeTime" | "lastUpdateTime"> & object[];
nodeInfo?
optional 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
apiEndpoint
get static apiEndpoint(): ApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>
set static apiEndpoint(endpoint: ApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>): void
Parameters
Parameter | Type |
---|---|
endpoint | ApiWithNamespaceClient <KubeObjectInterface > | ApiClient <KubeObjectInterface > |
Returns
ApiWithNamespaceClient
<KubeObjectInterface
> | ApiClient
<KubeObjectInterface
>
Inherited from
Defined in
className
get static className(): string
Returns
string
Inherited from
Defined in
detailsRoute
get static detailsRoute(): string
Returns
string
Inherited from
Defined in
listRoute
get static listRoute(): string
Returns
string
Inherited from
Defined in
pluralName
get static pluralName(): string
Returns
string
Inherited from
Defined in
Methods
_class()
_class(): typeof KubeObject
Returns
typeof KubeObject
Inherited from
Defined in
delete()
delete(): Promise<any>
Returns
Promise
<any
>
Inherited from
Defined in
getAge()
getAge(): string
Returns
string
Inherited from
Defined in
getAuthorization()
getAuthorization(verb: string, reqResourseAttrs?: AuthRequestResourceAttrs): Promise<any>