36 lines
762 B
Plaintext
36 lines
762 B
Plaintext
|
// Strips spec.containers[].limits for certain containers
|
||
|
// https://github.com/coreos/kube-prometheus/issues/72
|
||
|
{
|
||
|
_config+:: {
|
||
|
resources+:: {
|
||
|
'addon-resizer'+: {
|
||
|
limits: {},
|
||
|
},
|
||
|
'kube-rbac-proxy'+: {
|
||
|
limits: {},
|
||
|
},
|
||
|
'kube-state-metrics'+: {
|
||
|
limits: {},
|
||
|
},
|
||
|
'node-exporter'+: {
|
||
|
limits: {},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
prometheusOperator+: {
|
||
|
deployment+: {
|
||
|
spec+: {
|
||
|
template+: {
|
||
|
spec+: {
|
||
|
local addArgs(c) =
|
||
|
if c.name == 'prometheus-operator'
|
||
|
then c + {args+: ['--config-reloader-cpu=0']}
|
||
|
else c,
|
||
|
containers: std.map(addArgs, super.containers),
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
}
|