From bcda9b2e29241905ed3e31215af7015b86b6efcd Mon Sep 17 00:00:00 2001 From: Matthias Hinrichs Date: Sun, 8 Feb 2026 16:34:52 +0000 Subject: [PATCH] =?UTF-8?q?09=5Fhomelab=5Fapps/homelab-apps/templates/loki?= =?UTF-8?q?.yaml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../homelab-apps/templates/loki.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 09_homelab_apps/homelab-apps/templates/loki.yaml diff --git a/09_homelab_apps/homelab-apps/templates/loki.yaml b/09_homelab_apps/homelab-apps/templates/loki.yaml new file mode 100644 index 0000000..92df6f5 --- /dev/null +++ b/09_homelab_apps/homelab-apps/templates/loki.yaml @@ -0,0 +1,68 @@ +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 + loki: + auth_enabled: false + commonConfig: + replication_factor: 1 + storage: + type: 'filesystem' + # Permission-Fix für NFS-CSI + podSecurityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsUser: 10001 + singleBinary: + replicas: 1 + persistence: + enabled: true + size: 10Gi + storageClass: nfs-csi + gateway: + enabled: true + service: + type: ClusterIP + # 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-gateway + port: 80 \ No newline at end of file