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

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