Added promtail
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s
Check with kubeconform / lint (push) Successful in 8s
Auto-update README / Generate README and Create MR (push) Successful in 4s

This commit is contained in:
Ultradesu
2026-01-07 15:01:15 +00:00
parent a65b37f000
commit 4b30185655
3 changed files with 38 additions and 6 deletions

View File

@@ -31,3 +31,10 @@ helmCharts:
valuesFile: loki-values.yaml valuesFile: loki-values.yaml
includeCRDs: true includeCRDs: true
- name: promtail
repo: https://grafana.github.io/helm-charts
version: 6.16.6
releaseName: promtail
namespace: prometheus
valuesFile: promtail-values.yaml

View File

@@ -1,4 +1,4 @@
# Loki SingleBinary mode - оптимально для homelab # Loki SingleBinary mode - optimal for homelab
deploymentMode: SingleBinary deploymentMode: SingleBinary
loki: loki:
@@ -37,7 +37,7 @@ singleBinary:
size: 50Gi size: 50Gi
storageClass: "" storageClass: ""
# Отключаем компоненты для distributed режима # Disable distributed mode components
read: read:
replicas: 0 replicas: 0
write: write:
@@ -45,26 +45,26 @@ write:
backend: backend:
replicas: 0 replicas: 0
# Отключаем memcached (не нужен для SingleBinary) # Disable memcached (not needed for SingleBinary)
chunksCache: chunksCache:
enabled: false enabled: false
resultsCache: resultsCache:
enabled: false enabled: false
# Gateway для доступа к Loki # Gateway for Loki access
gateway: gateway:
enabled: true enabled: true
replicas: 1 replicas: 1
service: service:
type: ClusterIP type: ClusterIP
# Отключаем тесты и canary # Disable tests and canary
test: test:
enabled: false enabled: false
lokiCanary: lokiCanary:
enabled: false enabled: false
# Мониторинг # Monitoring
monitoring: monitoring:
dashboards: dashboards:
enabled: false enabled: false

View File

@@ -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