From d924ebd3ee0689d358c24c9ed238ff3e4045bfe9 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Wed, 7 Jan 2026 15:13:54 +0000 Subject: [PATCH] Added promtail --- k8s/core/prom-stack/loki-values.yaml | 3 +-- k8s/core/prom-stack/promtail-values.yaml | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/k8s/core/prom-stack/loki-values.yaml b/k8s/core/prom-stack/loki-values.yaml index c098f43..06a33fe 100644 --- a/k8s/core/prom-stack/loki-values.yaml +++ b/k8s/core/prom-stack/loki-values.yaml @@ -21,8 +21,7 @@ loki: chunks_directory: /var/loki/chunks rules_directory: /var/loki/rules limits_config: - reject_old_samples: true - reject_old_samples_max_age: 168h + reject_old_samples: false ingestion_rate_mb: 16 ingestion_burst_size_mb: 32 max_query_parallelism: 32 diff --git a/k8s/core/prom-stack/promtail-values.yaml b/k8s/core/prom-stack/promtail-values.yaml index e03645c..c5d352b 100644 --- a/k8s/core/prom-stack/promtail-values.yaml +++ b/k8s/core/prom-stack/promtail-values.yaml @@ -3,11 +3,11 @@ config: clients: - url: http://loki-gateway.prometheus.svc:80/loki/api/v1/push -# DaemonSet - запускается на каждой ноде +# DaemonSet - runs on every node daemonset: enabled: true -# Tolerations для запуска на master/control-plane нодах +# Tolerations for master/control-plane nodes tolerations: - key: node-role.kubernetes.io/master operator: Exists @@ -16,6 +16,18 @@ tolerations: operator: Exists effect: NoSchedule +# Init container to increase inotify limits +initContainer: + - name: init-inotify + image: docker.io/busybox:1.36 + imagePullPolicy: IfNotPresent + command: + - sh + - -c + - sysctl -w fs.inotify.max_user_instances=512 + securityContext: + privileged: true + resources: requests: cpu: 50m