Skip to content
Snippets Groups Projects
Unverified Commit 0424835b authored by paulfantom's avatar paulfantom
Browse files

jsonnet/addons: update removal of resource limits for certain containers

parent 4132da53
No related branches found
No related tags found
No related merge requests found
// Strips spec.containers[].limits for certain containers // Strips spec.containers[].limits for certain containers
// https://github.com/prometheus-operator/kube-prometheus/issues/72 // https://github.com/prometheus-operator/kube-prometheus/issues/72
{ {
_config+:: { local noLimit(c) =
resources+:: { //if std.objectHas(c, 'resources') && c.name != 'kube-state-metrics'
'addon-resizer'+: { if c.name != 'kube-state-metrics'
limits: {}, then c { resources+: { limits: {} } }
}, else c,
'kube-rbac-proxy'+: {
limits: {}, nodeExporter+: {
}, daemonset+: {
'kube-state-metrics'+: { spec+: {
limits: {}, template+: {
spec+: {
containers: std.map(noLimit, super.containers),
},
},
}, },
'node-exporter'+: { },
limits: {}, },
kubeStateMetrics+: {
deployment+: {
spec+: {
template+: {
spec+: {
containers: std.map(noLimit, super.containers),
},
},
}, },
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment