Merge pull request #2144 from metalmatze/cpu-limits
Increase CPU limits for small containers to not being throttled as often
This commit is contained in:
@@ -182,7 +182,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
||||
},
|
||||
]) +
|
||||
container.mixin.resources.withRequests({ cpu: '10m', memory: '30Mi' }) +
|
||||
container.mixin.resources.withLimits({ cpu: '10m', memory: '30Mi' });
|
||||
container.mixin.resources.withLimits({ cpu: '50m', memory: '30Mi' });
|
||||
|
||||
local c = [proxyClusterMetrics, proxySelfMetrics, kubeStateMetrics, addonResizer];
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
||||
]) +
|
||||
container.withVolumeMounts([procVolumeMount, sysVolumeMount, rootVolumeMount]) +
|
||||
container.mixin.resources.withRequests({ cpu: '102m', memory: '180Mi' }) +
|
||||
container.mixin.resources.withLimits({ cpu: '102m', memory: '180Mi' });
|
||||
container.mixin.resources.withLimits({ cpu: '250m', memory: '180Mi' });
|
||||
|
||||
local ip = containerEnv.fromFieldPath('IP', 'status.podIP');
|
||||
local proxy =
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus"
|
||||
}
|
||||
},
|
||||
"version": "9cc151ced4308573a91f4cc3fcdbc951213b03e0"
|
||||
"version": "606a53d42a836baa950f138be43fae7ae98821cd"
|
||||
},
|
||||
{
|
||||
"name": "ksonnet",
|
||||
|
||||
@@ -84,7 +84,7 @@ spec:
|
||||
name: addon-resizer
|
||||
resources:
|
||||
limits:
|
||||
cpu: 10m
|
||||
cpu: 50m
|
||||
memory: 30Mi
|
||||
requests:
|
||||
cpu: 10m
|
||||
|
||||
@@ -25,7 +25,7 @@ spec:
|
||||
name: node-exporter
|
||||
resources:
|
||||
limits:
|
||||
cpu: 102m
|
||||
cpu: 250m
|
||||
memory: 180Mi
|
||||
requests:
|
||||
cpu: 102m
|
||||
|
||||
Reference in New Issue
Block a user