From 12fdf402f64a2a910c8d736e96b6a6c0f7dabdc3 Mon Sep 17 00:00:00 2001 From: "SPEARS, DUSTIN (ds443n)" Date: Mon, 12 Feb 2024 11:58:18 -0500 Subject: [PATCH] Add resource allocation setting for etcd sidecar Change-Id: I4c284d9bbf2da91a6a0e43758d92bf007be25f9c --- charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl | 2 +- charts/etcd/values.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl b/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl index 737f21ab..5df4eb10 100644 --- a/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl +++ b/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl @@ -131,7 +131,7 @@ spec: - name: etcd-health-check image: {{ .Values.images.tags.etcdctl }} imagePullPolicy: {{ .Values.images.pull_policy }} -{{ tuple $envAll $envAll.Values.pod.resources.etcd_pod | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }} +{{ tuple $envAll $envAll.Values.pod.resources.etcd_pod_sidecar | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }} {{ dict "envAll" $envAll "application" "etcd" "container" "etcd" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }} env: - name: ETCDCTL_API diff --git a/charts/etcd/values.yaml b/charts/etcd/values.yaml index 2bbede89..b79b0676 100644 --- a/charts/etcd/values.yaml +++ b/charts/etcd/values.yaml @@ -261,6 +261,13 @@ pod: limits: memory: "1024Mi" cpu: "2000m" + etcd_pod_sidecar: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "1024Mi" + cpu: "2000m" test: limits: memory: "128Mi"