diff --git a/k8s/core/prom-stack/kustomization.yaml b/k8s/core/prom-stack/kustomization.yaml index d8b6d78..701d6d6 100644 --- a/k8s/core/prom-stack/kustomization.yaml +++ b/k8s/core/prom-stack/kustomization.yaml @@ -31,3 +31,10 @@ helmCharts: valuesFile: loki-values.yaml includeCRDs: true + - name: promtail + repo: https://grafana.github.io/helm-charts + version: 6.16.6 + releaseName: promtail + namespace: prometheus + valuesFile: promtail-values.yaml + diff --git a/k8s/core/prom-stack/loki-values.yaml b/k8s/core/prom-stack/loki-values.yaml index cc994a7..c098f43 100644 --- a/k8s/core/prom-stack/loki-values.yaml +++ b/k8s/core/prom-stack/loki-values.yaml @@ -1,4 +1,4 @@ -# Loki SingleBinary mode - оптимально для homelab +# Loki SingleBinary mode - optimal for homelab deploymentMode: SingleBinary loki: @@ -37,7 +37,7 @@ singleBinary: size: 50Gi storageClass: "" -# Отключаем компоненты для distributed режима +# Disable distributed mode components read: replicas: 0 write: @@ -45,26 +45,26 @@ write: backend: replicas: 0 -# Отключаем memcached (не нужен для SingleBinary) +# Disable memcached (not needed for SingleBinary) chunksCache: enabled: false resultsCache: enabled: false -# Gateway для доступа к Loki +# Gateway for Loki access gateway: enabled: true replicas: 1 service: type: ClusterIP -# Отключаем тесты и canary +# Disable tests and canary test: enabled: false lokiCanary: enabled: false -# Мониторинг +# Monitoring monitoring: dashboards: enabled: false diff --git a/k8s/core/prom-stack/promtail-values.yaml b/k8s/core/prom-stack/promtail-values.yaml new file mode 100644 index 0000000..e03645c --- /dev/null +++ b/k8s/core/prom-stack/promtail-values.yaml @@ -0,0 +1,25 @@ +# Promtail - log collection agent for all cluster pods +config: + clients: + - url: http://loki-gateway.prometheus.svc:80/loki/api/v1/push + +# DaemonSet - запускается на каждой ноде +daemonset: + enabled: true + +# Tolerations для запуска на master/control-plane нодах +tolerations: + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + +resources: + requests: + cpu: 50m + memory: 64Mi + limits: + cpu: 200m + memory: 128Mi