From 37cc50da5fc1eb83b337ecabc206c32184cf4bd5 Mon Sep 17 00:00:00 2001 From: aaron Date: Wed, 7 Feb 2024 00:11:32 +0000 Subject: [PATCH] KUSTOMIZE BUILD: build fail2ban-exporter deployment with kustomize 74 (done automagically via Drone pipeline) --- deploy/fail2ban-exporter.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deploy/fail2ban-exporter.yaml b/deploy/fail2ban-exporter.yaml index 9d5373b..f3da8ee 100644 --- a/deploy/fail2ban-exporter.yaml +++ b/deploy/fail2ban-exporter.yaml @@ -116,6 +116,13 @@ spec: port: http initialDelaySeconds: 3 periodSeconds: 2 + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 250m + memory: 64Mi serviceAccountName: fail2ban-geoip-service-account --- apiVersion: apps/v1 @@ -142,13 +149,20 @@ spec: - env: - name: F2B_GEOIP_SERVICE value: fail2ban-geoip - image: git.ar21.de/yolokube/fail2ban-prometheus-exporter:39 + image: git.ar21.de/yolokube/fail2ban-prometheus-exporter:43 imagePullPolicy: IfNotPresent name: fail2ban-prometheus-exporter ports: - containerPort: 9191 name: http-metrics protocol: TCP + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 250m + memory: 64Mi volumeMounts: - mountPath: /var/run/fail2ban/fail2ban.sock name: fail2ban