Added promtail
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
25
k8s/core/prom-stack/promtail-values.yaml
Normal file
25
k8s/core/prom-stack/promtail-values.yaml
Normal 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
|
||||
Reference in New Issue
Block a user