Files
rke2-single-node/09_homelab_apps/homelab-apps/templates/loki.yaml
T

79 lines
1.8 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: loki
namespace: argocd
spec:
project: homelab
source:
repoURL: https://grafana.github.io/helm-charts
chart: loki
targetRevision: 6.52.0
helm:
values: |
deploymentMode: SingleBinary
# Diese Sektionen müssen explizit auf 0,
# damit sie den SingleBinary Modus nicht blockieren
backend:
replicas: 0
read:
replicas: 0
write:
replicas: 0
loki:
auth_enabled: false
storage:
type: 'filesystem'
schemaConfig:
configs:
- from: "2024-01-01"
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
singleBinary:
replicas: 1
persistence:
enabled: true
size: 10Gi
storageClass: nfs-csi
gateway:
enabled: false
# Ressourcen-Optimierung für das Homelab
resultsCache:
enabled: false
chunksCache:
enabled: false
destination:
server: https://kubernetes.default.svc
namespace: kube-prometheus-stack
syncPolicy:
automated:
prune: true
selfHeal: true
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: loki-ingest-route
namespace: kube-prometheus-stack
spec:
parentRefs:
- name: shared-gateway
namespace: default
hostnames:
- "loki.k8s.hnrx.net"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: loki
port: 80