feat(cluster-components): add logging based on Loki
This commit is contained in:
parent
9f684dc052
commit
81a5d4bf5f
4 changed files with 72 additions and 0 deletions
22
_argocd/apps/logging.yaml
Normal file
22
_argocd/apps/logging.yaml
Normal 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
|
||||||
9
cluster-components/logging/Chart.lock
Normal file
9
cluster-components/logging/Chart.lock
Normal 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"
|
||||||
14
cluster-components/logging/Chart.yaml
Normal file
14
cluster-components/logging/Chart.yaml
Normal 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
|
||||||
27
cluster-components/logging/values.yaml
Normal file
27
cluster-components/logging/values.yaml
Normal 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
|
||||||
Reference in a new issue