theshire/kubernetes/apps/observability/loki/app/helmrelease.yaml

148 lines
3.8 KiB
YAML
Raw Normal View History

2024-02-29 11:09:02 -06:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: loki
spec:
interval: 30m
timeout: 15m
chart:
spec:
chart: loki
2024-05-02 11:01:00 -05:00
version: 6.4.2
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
dependsOn:
- name: openebs
namespace: openebs-system
- name: rook-ceph-cluster
namespace: rook-ceph
- name: vector-agent
namespace: observability
- name: vector-aggregator
namespace: observability
valuesFrom:
- targetPath: loki.storage.bucketNames.chunks
kind: ConfigMap
name: &cephBucket loki-bucket
valuesKey: BUCKET_NAME
- targetPath: loki.storage.s3.endpoint
kind: ConfigMap
name: *cephBucket
valuesKey: BUCKET_HOST
- targetPath: loki.storage.s3.region
kind: ConfigMap
name: *cephBucket
valuesKey: BUCKET_REGION
- targetPath: loki.storage.s3.accessKeyId
kind: Secret
name: *cephBucket
valuesKey: AWS_ACCESS_KEY_ID
- targetPath: loki.storage.s3.secretAccessKey
kind: Secret
name: *cephBucket
valuesKey: AWS_SECRET_ACCESS_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:
configmap.reloader.stakater.com/reload: *cephBucket
secret.reloader.stakater.com/reload: *cephBucket
2024-04-10 21:46:15 -05:00
ingester:
chunk_encoding: snappy
storage:
type: s3
s3:
s3ForcePathStyle: true
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
rule_path: /rules/fake
2024-02-29 11:09:02 -06:00
analytics:
reporting_enabled: false
backend:
replicas: 2
persistence:
size: 20Gi
storageClass: openebs-hostpath
2024-02-29 11:09:02 -06:00
gateway:
replicas: 2
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:
- hosts: [*host]
2024-02-29 11:09:02 -06:00
read:
replicas: 2
write:
replicas: 2
2024-02-29 11:09:02 -06:00
persistence:
size: 20Gi
2024-02-29 11:09:02 -06:00
storageClass: openebs-hostpath
sidecar:
image:
repository: ghcr.io/kiwigrid/k8s-sidecar
2024-04-10 21:46:15 -05:00
rules:
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:
enabled: false