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