FEAT(loki): configure storage and HA

- Rename extraVolume to avoid duplicate name
- Add emptyDir for /var/loki cache
- Migrate to shared storage with MinIO
- Configure HA with 2 replicas
- Revert to single replica for Single Binary mode
This commit is contained in:
2026-01-08 17:35:25 +09:00
parent 2b7ee1fe51
commit 2cf35d0f76
2 changed files with 26 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ loki:
ruler: loki
admin: loki
# Single binary mode for simplicity
# Single binary mode with 2 replicas
commonConfig:
replication_factor: 1
replication_factor: 2
# Schema config
schemaConfig:
@@ -49,17 +49,26 @@ loki:
deploymentMode: SingleBinary
singleBinary:
replicas: 1
replicas: 2
persistence:
enabled: false
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: loki
topologyKey: kubernetes.io/hostname
extraEnvFrom:
- secretRef:
name: minio-s3-credentials
extraVolumes:
- name: tmp
- name: loki-data
emptyDir: {}
extraVolumeMounts:
- name: tmp
- name: loki-data
mountPath: /var/loki
resources:
requests: