forked from JamesClonk/kubeone-dcs-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
loki.sh
executable file
·43 lines (41 loc) · 887 Bytes
/
loki.sh
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
#!/bin/bash
set -e
set -u
set -o pipefail
if [[ "$(basename ${PWD})" == "deployments" ]]; then
cd ..
fi
# chart source: https://github.com/grafana/loki/tree/main/production/helm/loki
repository="https://grafana.github.io/helm-charts"
chart="loki"
version="5.6.4"
namespace="${chart}"
cat > "deployments/${chart}.values.yaml" <<EOF
loki:
auth_enabled: false
commonConfig:
replication_factor: 1
storage:
type: filesystem
test:
enabled: false
monitoring:
dashboards:
enabled: false
rules:
enabled: false
alerting: false
serviceMonitor:
enabled: false
selfMonitoring:
enabled: false
grafanaAgent:
installOperator: false
lokiCanary:
enabled: false
singleBinary:
replicas: 1
persistence:
size: 20Gi
EOF
deployments/install-chart.sh "${repository}" "${chart}" "${namespace}" "${version}" "deployments/${chart}.values.yaml"