From 12cab6ab303f6985341268b8557cc498afdeb5b1 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Fri, 11 Jul 2025 22:02:39 -0500 Subject: [PATCH] add loki --- apps/loki.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ loki/Chart.yaml | 9 +++++++++ 2 files changed, 52 insertions(+) create mode 100644 apps/loki.yaml create mode 100644 loki/Chart.yaml diff --git a/apps/loki.yaml b/apps/loki.yaml new file mode 100644 index 0000000..aa7d36a --- /dev/null +++ b/apps/loki.yaml @@ -0,0 +1,43 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: loki +spec: + goTemplate: true + goTemplateOptions: ["missingkey=error"] + generators: + - list: + elements: + - cluster: production + url: https://kubernetes.default.svc + chart: 4.11.7 + - cluster: staging + url: https://k3s-ctrl-lb.lab.kill0.net:6443 + chart: 4.11.7 + - cluster: development + url: https://k0s-ctrl-vip.lab.kill0.net:6443 + chart: 4.11.7 + template: + metadata: + name: 'loki-{{.cluster}}' + spec: + project: default + source: + path: loki + repoURL: https://git.kill0.net/ryanc/argocd.git + targetRevision: HEAD + helm: + releaseName: loki + valueFiles: + - values.yaml + - values-{{.cluster}}.yaml + ignoreMissingValueFiles: true + destination: + server: '{{.url}}' + namespace: loki + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/loki/Chart.yaml b/loki/Chart.yaml new file mode 100644 index 0000000..2ee796d --- /dev/null +++ b/loki/Chart.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: v2 +name: loki +version: "1.0.0" + +dependencies: + - name: loki + version: 6.31.0 + repository: https://grafana.github.io/helm-charts