REFACTOR(loki,tempo): switch from MinIO to local-path storage

- Loki: s3 backend to filesystem with local-path PVC
- Tempo: s3 backend to local backend with local-path PVC
- Remove MinIO/S3 credentials and configuration
This commit is contained in:
2026-01-09 17:13:38 +09:00
parent 94af545120
commit 24747b98cf
2 changed files with 19 additions and 58 deletions

View File

@@ -1,35 +1,23 @@
# Loki Helm Values # Loki Helm Values
# Chart: https://grafana.github.io/helm-charts # Chart: https://grafana.github.io/helm-charts
# Single binary deployment with S3 (MinIO) storage # Single binary deployment with local filesystem storage
loki: loki:
# Use S3 storage (MinIO) # Use filesystem storage (local-path PVC)
storage: storage:
type: s3 type: filesystem
s3:
endpoint: http://minio.minio.svc.cluster.local:9000
region: us-east-1
bucketNames:
chunks: loki
ruler: loki
admin: loki
s3ForcePathStyle: true
insecure: true
bucketNames:
chunks: loki
ruler: loki
admin: loki
# Single binary mode with 1 replica # Single binary mode with 1 replica
commonConfig: commonConfig:
replication_factor: 1 replication_factor: 1
path_prefix: /var/loki
# Schema config # Schema config - filesystem backend
schemaConfig: schemaConfig:
configs: configs:
- from: "2024-01-01" - from: "2024-01-01"
store: tsdb store: tsdb
object_store: s3 object_store: filesystem
schema: v13 schema: v13
index: index:
prefix: index_ prefix: index_
@@ -51,23 +39,16 @@ deploymentMode: SingleBinary
singleBinary: singleBinary:
replicas: 1 replicas: 1
persistence: persistence:
enabled: false enabled: true
# Run on master node for stability (consistent with Thanos/Tempo) storageClass: local-path
size: 10Gi
# Run on master node for stability
tolerations: tolerations:
- key: node-role.kubernetes.io/control-plane - key: node-role.kubernetes.io/control-plane
operator: Exists operator: Exists
effect: NoSchedule effect: NoSchedule
nodeSelector: nodeSelector:
node-role.kubernetes.io/control-plane: "true" node-role.kubernetes.io/control-plane: "true"
extraEnvFrom:
- secretRef:
name: minio-s3-credentials
extraVolumes:
- name: loki-data
emptyDir: {}
extraVolumeMounts:
- name: loki-data
mountPath: /var/loki
resources: resources:
requests: requests:
cpu: 23m cpu: 23m

View File

@@ -3,7 +3,7 @@
# #
# Architecture: # Architecture:
# - Single binary (monolithic) mode for small clusters # - Single binary (monolithic) mode for small clusters
# - MinIO S3 for trace storage # - Local filesystem for trace storage
# - OTLP receiver for OpenTelemetry data # - OTLP receiver for OpenTelemetry data
# - Integrates with Grafana for trace visualization # - Integrates with Grafana for trace visualization
@@ -41,17 +41,14 @@ tempo:
# Retention settings # Retention settings
retention: 72h # Keep traces for 3 days retention: 72h # Keep traces for 3 days
# Backend storage (MinIO S3) # Backend storage (local filesystem)
# Uses environment variable expansion
storage: storage:
trace: trace:
backend: s3 backend: local
s3: local:
bucket: tempo path: /var/tempo/traces
endpoint: minio.minio.svc.cluster.local:9000 wal:
access_key: ${S3_ACCESS_KEY} path: /var/tempo/wal
secret_key: ${S3_SECRET_KEY}
insecure: true
# Query settings # Query settings
querier: querier:
@@ -63,30 +60,13 @@ tempo:
enabled: true enabled: true
remoteWriteUrl: http://prometheus-kube-prometheus-prometheus.prometheus.svc:9090/api/v1/write remoteWriteUrl: http://prometheus-kube-prometheus-prometheus.prometheus.svc:9090/api/v1/write
# Enable environment variable expansion in config
extraArgs:
config.expand-env: "true"
# Environment variables from secret for S3 credentials
extraEnv:
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: tempo-s3-secret
key: S3_ACCESS_KEY
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
name: tempo-s3-secret
key: S3_SECRET_KEY
# ============================================================================= # =============================================================================
# Persistence (local cache) # Persistence (local-path PVC)
# ============================================================================= # =============================================================================
persistence: persistence:
enabled: true enabled: true
storageClassName: local-path storageClassName: local-path
size: 2Gi size: 5Gi
# ============================================================================= # =============================================================================
# Service # Service