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