aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/values.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-09-23 13:35:31 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-10-20 11:02:28 +0200
commit5e16401636e8b9a5eb72d3e66a6ddb2c9982e0b9 (patch)
tree950d8b6655728227d9a722a92360bcff3dded28d /kubernetes/consul/values.yaml
parentc08c8ffa8ec4f063c22e19acdc0a1e23edd4f26f (diff)
[CONSUL] Add limits to consul chart.
Having limits is important in order to have safe deployment. consul didn't had one so let's add them. Issue-ID: OOM-2230 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Idb49a5db304236c0786848acbc69c786084d7e33
Diffstat (limited to 'kubernetes/consul/values.yaml')
-rw-r--r--kubernetes/consul/values.yaml30
1 files changed, 28 insertions, 2 deletions
diff --git a/kubernetes/consul/values.yaml b/kubernetes/consul/values.yaml
index 72d9a38fa7..512c4c3dac 100644
--- a/kubernetes/consul/values.yaml
+++ b/kubernetes/consul/values.yaml
@@ -65,8 +65,34 @@ ingress:
port: 8800
config:
ssl: "none"
-
-resources: {}
+
+#resources: {}
+ # We usually recommend not to specify default resources and to leave this as a conscious
+ # choice for the user. This also increases chances charts run on environments with little
+ # resources, such as Minikube. If you do want to specify resources, uncomment the following
+ # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+ #
+ # Example:
+ # Configure resource requests and limits
+ # ref: http://kubernetes.io/docs/user-guide/compute-resources/
+ # Minimum memory for development is 2 CPU cores and 4GB memory
+ # Minimum memory for production is 4 CPU cores and 8GB memory
+resources:
+ small:
+ limits:
+ cpu: 1
+ memory: 1500Mi
+ requests:
+ cpu: 650m
+ memory: 530Mi
+ large:
+ limits:
+ cpu: 2
+ memory: 4Gi
+ requests:
+ cpu: 1
+ memory: 2Gi
+ unlimited: {}
odl:
jolokia: