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:
@@ -3,6 +3,18 @@
|
||||
|
||||
fullnameOverride: grafana
|
||||
|
||||
replicas: 2
|
||||
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: grafana
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
admin:
|
||||
user: bluemayne
|
||||
# Password is managed via SealedSecret: grafana-admin-password
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user