文件
k3s/apps/infra/monitor/loki/helmchart-loki.yaml
T
2025-06-27 18:35:26 +08:00

61 行
1.4 KiB
YAML

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: loki
namespace: infra-monitor
spec:
repo: https://grafana.github.io/helm-charts
chart: loki
targetNamespace: infra-monitor
version: 6.30.1
valuesContent: |-
deploymentMode: SingleBinary
gateway:
enabled: false
lokiCanary:
nodeSelector:
svccontroller.k3s.cattle.io/enablelb: "true"
extraArgs:
# 降低测试日志生成条数
- -interval=30s
- -labelname=service_name
- -labelvalue=loki-canary
resultsCache:
nodeSelector:
kubernetes.io/hostname: clawhk
allocatedMemory: 1024
chunksCache:
nodeSelector:
kubernetes.io/hostname: clawhk
allocatedMemory: 1024
loki:
auth_enabled: false
commonConfig:
replication_factor: 1
limits_config:
reject_old_samples_max_age: 168h
max_query_series: 10000
volume_enabled: true
storage:
type: 'filesystem'
schemaConfig:
configs:
- from: "2024-01-01"
store: tsdb
index:
prefix: loki_index_
period: 24h
object_store: filesystem
schema: v13
singleBinary:
replicas: 1
nodeSelector:
kubernetes.io/hostname: clawhk
read:
replicas: 0
backend:
replicas: 0
write:
replicas: 0