-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
loki_argocd_app.yaml
49 lines (49 loc) · 1.36 KB
/
loki_argocd_app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: loki
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: prometheus
source:
repoURL: 'https://github.com/grafana/helm-charts'
path: charts/loki-stack
targetRevision: HEAD
helm:
skipCrds: true
values: |
loki:
isDefault: false
storageConfig:
tsdb_shipper:
active_index_directory: /data/tsdb-index
cache_location: /data/tsdb-cache
index_gateway_client:
# only applicable if using microservices where index-gateways are independently deployed.
# This example is using kubernetes-style naming.
server_address: dns:///index-gateway.prometheus.svc.cluster.local:9095
shared_store: gcs
promtail:
enabled: true
extraScrapeConfigs: |
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- Retry=true
automated:
selfHeal: true
prune: true