From d53ae6af7474d380b00c8a9843d6713b05ee006d Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Tue, 24 Oct 2023 17:54:06 +0200 Subject: [PATCH] add loki and promtail --- core-deployments.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++ loki/namespace.yaml | 6 +++++ loki/values.yaml | 6 +++++ 3 files changed, 66 insertions(+) create mode 100644 loki/namespace.yaml create mode 100644 loki/values.yaml diff --git a/core-deployments.yaml b/core-deployments.yaml index 9b77676..32a6dd5 100644 --- a/core-deployments.yaml +++ b/core-deployments.yaml @@ -198,6 +198,60 @@ spec: destination: server: https://kubernetes.default.svc namespace: dashboard-staging + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: false + prune: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: loki + namespace: argocd +spec: + project: default + source: + - chart: loki + repoURL: https://grafana.github.io/helm-charts + targetRevision: 5.35.0 + helm: + releaseName: loki + valueFiles: + - $values/loki/values.yaml + - repoURL: https://git.ar21.de/yolokube/core-deployments.git + targetRevision: HEAD + ref: values + - repoURL: https://git.ar21.de/yolokube/core-deployments.git + targetRevision: HEAD + path: loki + destination: + server: https://kubernetes.default.svc + namespace: logs + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: false + prune: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: promtail + namespace: argocd +spec: + project: default + source: + - chart: promtail + repoURL: https://grafana.github.io/helm-charts + targetRevision: 6.15.3 + helm: + releaseName: promtail + destination: + server: https://kubernetes.default.svc + namespace: logs syncPolicy: syncOptions: - CreateNamespace=true diff --git a/loki/namespace.yaml b/loki/namespace.yaml new file mode 100644 index 0000000..314a961 --- /dev/null +++ b/loki/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: logs + labels: + prometheus: yolokube diff --git a/loki/values.yaml b/loki/values.yaml new file mode 100644 index 0000000..104ef1b --- /dev/null +++ b/loki/values.yaml @@ -0,0 +1,6 @@ +minio: + enabled: true + replicas: 3 + drivesPerNode: 4 +loki: + auth_enabled: false \ No newline at end of file