Use allocatable instead of capacity for node resources. (#2098)

This commit is contained in:
mcpappas authored and GitHub committed 2021-06-18 14:53:29 -04:00
1 parent 9b04e611a4
commit 008e516715
8 files changed
+108 -20

No files matched your search

@@ -33,15 +33,19 @@ export class ClusterApi extends KubeApi<Cluster> {
return metricsApi.getMetrics({
memoryUsage: opts,
workloadMemoryUsage: opts,
memoryRequests: opts,
memoryLimits: opts,
memoryCapacity: opts,
memoryAllocatableCapacity: opts,
cpuUsage: opts,
cpuRequests: opts,
cpuLimits: opts,
cpuCapacity: opts,
cpuAllocatableCapacity: opts,
podUsage: opts,
podCapacity: opts,
podAllocatableCapacity: opts,
fsSize: opts,
fsUsage: opts
}, params);
+4
View File
@@ -31,7 +31,9 @@ export class NodesApi extends KubeApi<Node> {
return metricsApi.getMetrics({
memoryUsage: opts,
workloadMemoryUsage: opts,
memoryCapacity: opts,
memoryAllocatableCapacity: opts,
cpuUsage: opts,
cpuCapacity: opts,
fsSize: opts,
@@ -43,7 +45,9 @@ export class NodesApi extends KubeApi<Node> {
export interface INodeMetrics<T = IMetrics> {
[metric: string]: T;
memoryUsage: T;
workloadMemoryUsage: T;
memoryCapacity: T;
memoryAllocatableCapacity: T;
cpuUsage: T;
cpuCapacity: T;
fsUsage: T;