Show all node resources in node view (#2861)

Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
Violetta authored and GitHub committed 2021-05-27 08:52:35 -04:00
1 parent 81a35737fd
commit 6cee819c8b
4 files changed
+165 -21

No files matched your search

+32 -10
View File
@@ -52,39 +52,56 @@ export interface INodeMetrics<T = IMetrics> {
export interface Node {
spec: {
podCIDR: string;
externalID: string;
podCIDR?: string;
podCIDRs?: string[];
providerID?: string;
/**
* @deprecated see https://issues.k8s.io/61966
*/
externalID?: string;
taints?: {
key: string;
value: string;
effect: string;
timeAdded: string;
}[];
unschedulable?: boolean;
};
status: {
capacity: {
capacity?: {
cpu: string;
["ephemeral-storage"]: string;
["hugepages-1Gi"]: string;
["hugepages-2Mi"]: string;
memory: string;
pods: string;
};
allocatable: {
allocatable?: {
cpu: string;
["ephemeral-storage"]: string;
["hugepages-1Gi"]: string;
["hugepages-2Mi"]: string;
memory: string;
pods: string;
};
conditions: {
conditions?: {
type: string;
status?: string;
status: string;
lastHeartbeatTime?: string;
lastTransitionTime?: string;
reason?: string;
message?: string;
}[];
addresses: {
addresses?: {
type: string;
address: string;
}[];
nodeInfo: {
daemonEndpoints?: {
kubeletEndpoint: {
Port: number; //it must be uppercase for backwards compatibility
}
}
nodeInfo?: {
machineID: string;
systemUUID: string;
bootID: string;
@@ -96,9 +113,14 @@ export interface Node {
operatingSystem: string;
architecture: string;
};
images: {
images?: {
names: string[];
sizeBytes: number;
sizeBytes?: number;
}[];
volumesInUse?: string[];
volumesAttached?: {
name: string;
devicePath: string;
}[];
};
}