From e69a8075a0fc4a41a20688f6aa3d0b0b8898d348 Mon Sep 17 00:00:00 2001 From: Walter Otsyula Date: Thu, 29 Aug 2024 10:17:46 +0300 Subject: [PATCH 1/2] Update keepalived-template.yaml Add resource requests and limits --- config/templates/keepalived-template.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/templates/keepalived-template.yaml b/config/templates/keepalived-template.yaml index 037f109..acd0133 100644 --- a/config/templates/keepalived-template.yaml +++ b/config/templates/keepalived-template.yaml @@ -55,6 +55,13 @@ {{- end }} - name: create_config_only value: "true" + resources: + limits: + cpu: 350m + memory: 64Mi + requests: + cpu: 100m + memory: 32Mi volumeMounts: - mountPath: /etc/keepalived.d/src name: config @@ -83,6 +90,13 @@ valueFrom: fieldRef: fieldPath: metadata.name + resources: + limits: + cpu: 350m + memory: 128Mi + requests: + cpu: 100m + memory: 64Mi volumeMounts: - mountPath: /lib/modules name: lib-modules From eca0894ebccf5f3ddaae0ac01e7ba2b8c40aa3cf Mon Sep 17 00:00:00 2001 From: Walter Otsyula Date: Thu, 29 Aug 2024 10:35:04 +0300 Subject: [PATCH 2/2] Update keepalived-template.yaml also add resource requests to prometheus-exporter --- config/templates/keepalived-template.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/config/templates/keepalived-template.yaml b/config/templates/keepalived-template.yaml index acd0133..febb11e 100644 --- a/config/templates/keepalived-template.yaml +++ b/config/templates/keepalived-template.yaml @@ -57,10 +57,10 @@ value: "true" resources: limits: - cpu: 350m + cpu: 150m memory: 64Mi requests: - cpu: 100m + cpu: 50m memory: 32Mi volumeMounts: - mountPath: /etc/keepalived.d/src @@ -132,6 +132,13 @@ {{- end }} - name: create_config_only value: "false" + resources: + limits: + cpu: 150m + memory: 64Mi + requests: + cpu: 50m + memory: 32Mi volumeMounts: - mountPath: /etc/keepalived.d/src name: config @@ -158,6 +165,13 @@ - name: metrics containerPort: 9650 protocol: TCP + resources: + limits: + cpu: 150m + memory: 64Mi + requests: + cpu: 50m + memory: 32Mi volumeMounts: - mountPath: /lib/modules name: lib-modules