From 580e40191fd682903f8f5e4ef996a7b4b2dcd6a7 Mon Sep 17 00:00:00 2001 From: jaskaransarkaria Date: Fri, 12 Jan 2024 11:20:14 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20log=20mount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore: 🤖 add request resources and tweak configmap --- configmap.tf | 6 +++--- templates/values.yaml.tpl | 19 ++++++++++++++----- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/configmap.tf b/configmap.tf index 24745b6..2ab9ee7 100644 --- a/configmap.tf +++ b/configmap.tf @@ -21,8 +21,8 @@ resource "kubernetes_config_map" "fluent-bit-config" { HTTP_Listen 0.0.0.0 HTTP_Port 2020 Storage.path /var/log/flb-storage/ - Storage.max_chunks_up 64 - Storage.backlog.mem_limit 5MB + Storage.max_chunks_up 128 + Storage.backlog.mem_limit 100MB [INPUT] Name tail @@ -72,7 +72,7 @@ resource "kubernetes_config_map" "fluent-bit-config" { Keep_Log On Merge_Log On Merge_Log_Key log_processed - Buffer_Size 1MB + Buffer_Size 5MB [FILTER] Name lua diff --git a/templates/values.yaml.tpl b/templates/values.yaml.tpl index 012d040..ad9cdd6 100644 --- a/templates/values.yaml.tpl +++ b/templates/values.yaml.tpl @@ -22,9 +22,13 @@ controller: configMap: name: logrotate-config - hostPath: - path: /var/log + path: /var/log/pods/ type: "" - name: varlog + name: varlog-pods + - hostPath: + path: /var/log/containers/ + type: "" + name: varlog-containers - hostPath: path: /var/lib/docker/containers type: "" @@ -72,8 +76,10 @@ controller: mountPath: /fluent-bit/scripts/ - name: logs-volume mountPath: /var/log/audit/ - - mountPath: /var/log/ - name: varlog + - name: varlog-pods + mountPath: /var/log/pods/ + - name: varlog-containers + mountPath: /var/log/containers/ - mountPath: /var/lib/docker/containers name: varlibdockercontainers readOnly: true @@ -100,7 +106,10 @@ controller: mountPath: /home - name: logs-volume mountPath: /var/log/audit/ - + resources: + requests: + cpu: "100m" + memory: "500Mi" %{ endif ~} # -- Process Ingress objects without ingressClass annotation/ingressClassName field