From 0e45b3b23b7448fe6bb23d30967bb7aeaf8051fa Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:05:25 +0200 Subject: [PATCH] add bind resource request to improve availability during tests, also set memory limit = request following best practice Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- make/config/bind/configmap.yaml | 1 + make/config/bind/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/make/config/bind/configmap.yaml b/make/config/bind/configmap.yaml index fef833041..5401c26d0 100644 --- a/make/config/bind/configmap.yaml +++ b/make/config/bind/configmap.yaml @@ -10,6 +10,7 @@ data: dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on { any; }; + max-cache-size 192m; }; zone "http01.example.com" { diff --git a/make/config/bind/deployment.yaml b/make/config/bind/deployment.yaml index eeef15a19..169e50ee5 100644 --- a/make/config/bind/deployment.yaml +++ b/make/config/bind/deployment.yaml @@ -41,6 +41,12 @@ spec: volumeMounts: - mountPath: /config name: data + resources: + requests: + cpu: 10m + memory: 256Mi + limits: + memory: 256Mi volumes: - name: data configMap: