Files
kube-prometheus/jsonnet/kube-prometheus/addons/strip-limits.libsonnet
ArthurSens 42e7df4d70 jsonnet/addons/strip-limits: Simplify logic
Since `release-0.8` resources has become a first-class object to all components of kube-prometheus. Therefore, we're simplifying this addon to reflect those changes.

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-11-15 14:38:15 +00:00

58 lines
1.0 KiB
Jsonnet

// Strips spec.containers[].limits for certain containers
// https://github.com/prometheus-operator/kube-prometheus/issues/72
{
//TODO(arthursens): Expand example once kube-rbac-proxy can be managed with a first-class
// object inside node-exporter, kube-state-metrics and prometheus-operator.
// See also: https://github.com/prometheus-operator/kube-prometheus/issues/1500#issuecomment-966727623
values+:: {
alertmanager+: {
resources+: {
limits: {},
},
},
blackboxExporter+: {
resources+: {
limits: {},
},
},
grafana+: {
resources+: {
limits: {},
},
},
kubeStateMetrics+: {
resources+: {
limits: {},
},
},
nodeExporter+: {
resources+: {
limits: {},
},
},
prometheusAdapter+: {
resources+: {
limits: {},
},
},
prometheusOperator+: {
resources+: {
limits: {},
},
},
prometheus+: {
resources+: {
limits: {},
},
},
},
}