Skip to content
Snippets Groups Projects
Verified Commit 753fe453 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

prometheus: Add memory requests & limits for prometheus

Currently Prometheus is causing some OOM messeages around a node, which
probably originates from the absence of requests and limits. This patch
should fix this problem.
parent 6012583d
No related branches found
No related tags found
No related merge requests found
......@@ -523,9 +523,9 @@ spec:
## Define resources requests and limits for single Pods.
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
##
resources: {}
# requests:
# memory: 400Mi
resources:
requests:
memory: 400Mi
## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
......@@ -1542,13 +1542,13 @@ spec:
## Resource limits & requests
##
resources: {}
# limits:
# cpu: 200m
# memory: 200Mi
# requests:
# cpu: 100m
# memory: 100Mi
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
# Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
# because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
......@@ -2300,8 +2300,10 @@ spec:
## Resource limits & requests
##
resources: {}
# requests:
# memory: 400Mi
requests:
memory: 400Mi
limits:
memory: 1Gi
## Prometheus StorageSpec for persistent data
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md
......
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