1
0
Fork 0

feat(cluster-components): add logging based on Loki

This commit is contained in:
Vojtěch Mareš 2022-09-08 16:04:56 +02:00
parent 9f684dc052
commit 81a5d4bf5f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
4 changed files with 72 additions and 0 deletions

22
_argocd/apps/logging.yaml Normal file
View file

@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: logging
namespace: argocd
spec:
destination:
namespace: logging
server: https://kubernetes.default.svc
project: default
source:
path: cluster-components/logging
repoURL: https://gitlab.mareshq.com/gitops/mareshq/bee.git
targetRevision: HEAD
helm:
skipCrds: true
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View file

@ -0,0 +1,9 @@
dependencies:
- name: promtail
repository: https://grafana.github.io/helm-charts
version: 6.3.0
- name: loki
repository: https://grafana.github.io/helm-charts
version: 3.0.1
digest: sha256:e4b0771d0c738fe26c8770cdd6fbc564c31b69b052516de22e4604ee6f2bcb3b
generated: "2022-09-08T16:03:37.238201+02:00"

View file

@ -0,0 +1,14 @@
apiVersion: v2
name: logging
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.0"
dependencies:
- name: promtail
version: 6.3.0
repository: https://grafana.github.io/helm-charts
- name: loki
version: 3.0.1
repository: https://grafana.github.io/helm-charts

View file

@ -0,0 +1,27 @@
promtail:
fullnameOverride: promtail
loki:
fullnameOverride: loki
write:
persistence:
size: 20Gi
storageClass: longhorn
read:
persistence:
size: 20Gi
storageClass: longhorn
singleBinary:
persistence:
storageClass: longhorn
monitoring:
# Do not collect the logs of Loki inside Loki
selfMonitoring:
enabled: false
grafanaAgent:
installOperator: false