From c7d3dfbdfe0d7181442745a92848c5cab6aa2c47 Mon Sep 17 00:00:00 2001 From: "Parsons, Cliff (cp769u)" Date: Fri, 21 Feb 2020 14:17:24 +0000 Subject: [PATCH] Add resource requests/limits to HAProxy container The resource requests/limits were missing for the HAProxy main container, although they are there for the init container. This patchset adds the resource clause to the main container. Change-Id: I0441dddfbee86da7a4fa6311f6b5e4eb274601bc --- charts/haproxy/templates/daemonset.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/haproxy/templates/daemonset.yaml b/charts/haproxy/templates/daemonset.yaml index 7b80bf2d..48fcc817 100644 --- a/charts/haproxy/templates/daemonset.yaml +++ b/charts/haproxy/templates/daemonset.yaml @@ -69,6 +69,7 @@ spec: image: {{ .Values.images.tags.anchor }} imagePullPolicy: {{ .Values.images.pull_policy }} {{ dict "envAll" $envAll "application" "haproxy_anchor" "container" "anchor" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }} +{{ tuple $envAll $envAll.Values.pod.resources.haproxy_anchor | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} env: - name: HAPROXY_HEADER value: /tmp/etc/haproxy.cfg.header