2024-02-29 11:09:02 -06:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
2024-05-28 10:02:09 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2024-02-29 11:09:02 -06:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: loki
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
timeout: 15m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: loki
|
2024-06-06 12:32:42 -05:00
|
|
|
version: 6.6.3
|
2024-02-29 11:09:02 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: grafana
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
2024-04-12 09:49:49 -05:00
|
|
|
strategy: uninstall
|
2024-02-29 11:09:02 -06:00
|
|
|
retries: 3
|
2024-04-11 09:57:38 -05:00
|
|
|
valuesFrom:
|
|
|
|
- targetPath: loki.storage.bucketNames.chunks
|
2024-05-08 19:12:23 -05:00
|
|
|
kind: Secret
|
|
|
|
name: loki-secret
|
2024-05-08 19:47:58 -05:00
|
|
|
valuesKey: S3_BUCKET
|
2024-04-11 09:57:38 -05:00
|
|
|
- targetPath: loki.storage.s3.endpoint
|
2024-05-08 19:12:23 -05:00
|
|
|
kind: Secret
|
|
|
|
name: loki-secret
|
2024-05-08 19:47:58 -05:00
|
|
|
valuesKey: S3_HOST
|
2024-04-11 09:57:38 -05:00
|
|
|
- targetPath: loki.storage.s3.region
|
2024-05-08 19:12:23 -05:00
|
|
|
kind: Secret
|
|
|
|
name: loki-secret
|
2024-05-08 19:47:58 -05:00
|
|
|
valuesKey: S3_REGION
|
2024-04-11 09:57:38 -05:00
|
|
|
- targetPath: loki.storage.s3.accessKeyId
|
|
|
|
kind: Secret
|
2024-05-08 19:12:23 -05:00
|
|
|
name: loki-secret
|
2024-05-08 19:47:58 -05:00
|
|
|
valuesKey: S3_ACCESS_KEY
|
2024-04-11 09:57:38 -05:00
|
|
|
- targetPath: loki.storage.s3.secretAccessKey
|
|
|
|
kind: Secret
|
2024-05-08 19:12:23 -05:00
|
|
|
name: loki-secret
|
2024-05-08 19:47:58 -05:00
|
|
|
valuesKey: S3_SECRET_KEY
|
2024-02-29 11:09:02 -06:00
|
|
|
values:
|
2024-04-10 21:46:15 -05:00
|
|
|
deploymentMode: SimpleScalable
|
2024-02-29 11:09:02 -06:00
|
|
|
loki:
|
2024-04-10 21:46:15 -05:00
|
|
|
podAnnotations:
|
2024-05-08 19:12:23 -05:00
|
|
|
secret.reloader.stakater.com/reload: loki-secret
|
2024-04-10 21:46:15 -05:00
|
|
|
ingester:
|
|
|
|
chunk_encoding: snappy
|
|
|
|
storage:
|
|
|
|
type: s3
|
|
|
|
s3:
|
|
|
|
s3ForcePathStyle: true
|
2024-04-11 09:57:38 -05:00
|
|
|
insecure: true
|
2024-04-10 21:58:31 -05:00
|
|
|
schemaConfig:
|
|
|
|
configs:
|
|
|
|
- from: "2024-04-01"
|
|
|
|
store: tsdb
|
|
|
|
object_store: s3
|
|
|
|
schema: v13
|
|
|
|
index:
|
|
|
|
prefix: loki_index_
|
|
|
|
period: 24h
|
2024-02-29 11:09:02 -06:00
|
|
|
structuredConfig:
|
|
|
|
auth_enabled: false
|
|
|
|
server:
|
|
|
|
log_level: info
|
|
|
|
http_listen_port: 3100
|
|
|
|
grpc_listen_port: 9095
|
2024-04-10 23:01:42 -05:00
|
|
|
grpc_server_max_recv_msg_size: 8388608
|
|
|
|
grpc_server_max_send_msg_size: 8388608
|
2024-02-29 11:09:02 -06:00
|
|
|
limits_config:
|
2024-04-10 23:01:42 -05:00
|
|
|
ingestion_burst_size_mb: 128
|
|
|
|
ingestion_rate_mb: 64
|
|
|
|
max_query_parallelism: 100
|
|
|
|
per_stream_rate_limit: 64M
|
|
|
|
per_stream_rate_limit_burst: 128M
|
2024-02-29 11:09:02 -06:00
|
|
|
reject_old_samples: true
|
|
|
|
reject_old_samples_max_age: 168h
|
2024-04-10 23:01:42 -05:00
|
|
|
retention_period: 30d
|
2024-02-29 11:09:02 -06:00
|
|
|
shard_streams:
|
|
|
|
enabled: true
|
2024-04-10 23:01:42 -05:00
|
|
|
split_queries_by_interval: 1h
|
2024-02-29 11:09:02 -06:00
|
|
|
query_scheduler:
|
|
|
|
max_outstanding_requests_per_tenant: 4096
|
|
|
|
frontend:
|
|
|
|
max_outstanding_per_tenant: 4096
|
|
|
|
ruler:
|
|
|
|
enable_api: true
|
|
|
|
enable_alertmanager_v2: true
|
|
|
|
alertmanager_url: http://alertmanager-operated.observability.svc.cluster.local:9093
|
|
|
|
storage:
|
|
|
|
type: local
|
|
|
|
local:
|
|
|
|
directory: /rules
|
2024-04-11 09:57:38 -05:00
|
|
|
rule_path: /rules/fake
|
2024-02-29 11:09:02 -06:00
|
|
|
analytics:
|
|
|
|
reporting_enabled: false
|
2024-04-11 09:57:38 -05:00
|
|
|
backend:
|
2024-05-07 13:31:53 -05:00
|
|
|
replicas: 1
|
2024-04-11 09:57:38 -05:00
|
|
|
persistence:
|
|
|
|
size: 20Gi
|
2024-05-07 19:05:31 -05:00
|
|
|
storageClass: openebs-zfs
|
2024-02-29 11:09:02 -06:00
|
|
|
gateway:
|
2024-05-07 13:31:53 -05:00
|
|
|
replicas: 1
|
2024-02-29 11:09:02 -06:00
|
|
|
image:
|
|
|
|
registry: ghcr.io
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
2024-02-29 11:43:38 -06:00
|
|
|
ingressClassName: internal-nginx
|
2024-02-29 11:09:02 -06:00
|
|
|
hosts:
|
2024-02-29 11:42:05 -06:00
|
|
|
- host: &host loki.jahanson.tech
|
2024-02-29 11:09:02 -06:00
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
tls:
|
2024-04-11 09:57:38 -05:00
|
|
|
- hosts: [*host]
|
2024-02-29 11:09:02 -06:00
|
|
|
read:
|
2024-05-07 13:31:53 -05:00
|
|
|
replicas: 1
|
2024-04-11 09:57:38 -05:00
|
|
|
write:
|
2024-05-07 13:31:53 -05:00
|
|
|
replicas: 1
|
2024-02-29 11:09:02 -06:00
|
|
|
persistence:
|
2024-04-11 09:57:38 -05:00
|
|
|
size: 20Gi
|
2024-05-07 19:05:31 -05:00
|
|
|
storageClass: openebs-zfs
|
2024-04-11 09:57:38 -05:00
|
|
|
sidecar:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/kiwigrid/k8s-sidecar
|
2024-04-10 21:46:15 -05:00
|
|
|
rules:
|
2024-04-11 09:57:38 -05:00
|
|
|
searchNamespace: ALL
|
|
|
|
folder: /rules/fake
|
2024-04-10 21:46:15 -05:00
|
|
|
lokiCanary:
|
|
|
|
enabled: false
|
2024-02-29 11:09:02 -06:00
|
|
|
test:
|
2024-05-07 13:31:53 -05:00
|
|
|
enabled: false
|