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
|
fullnameOverride: grafana
|
||||||
|
|
||||||
|
replicas: 2
|
||||||
|
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: grafana
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
user: bluemayne
|
user: bluemayne
|
||||||
# Password is managed via SealedSecret: grafana-admin-password
|
# Password is managed via SealedSecret: grafana-admin-password
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ loki:
|
|||||||
ruler: loki
|
ruler: loki
|
||||||
admin: loki
|
admin: loki
|
||||||
|
|
||||||
# Single binary mode for simplicity
|
# Single binary mode with 2 replicas
|
||||||
commonConfig:
|
commonConfig:
|
||||||
replication_factor: 1
|
replication_factor: 2
|
||||||
|
|
||||||
# Schema config
|
# Schema config
|
||||||
schemaConfig:
|
schemaConfig:
|
||||||
@@ -49,17 +49,26 @@ loki:
|
|||||||
deploymentMode: SingleBinary
|
deploymentMode: SingleBinary
|
||||||
|
|
||||||
singleBinary:
|
singleBinary:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: loki
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
extraEnvFrom:
|
extraEnvFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: minio-s3-credentials
|
name: minio-s3-credentials
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
- name: tmp
|
- name: loki-data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: tmp
|
- name: loki-data
|
||||||
mountPath: /var/loki
|
mountPath: /var/loki
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
Reference in New Issue
Block a user