forked from swisscom/kubeone-dcs-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpromtail.sh
More file actions
executable file
·29 lines (27 loc) · 739 Bytes
/
Copy pathpromtail.sh
File metadata and controls
executable file
·29 lines (27 loc) · 739 Bytes
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
#!/bin/bash
set -e
set -u
set -o pipefail
if [[ "$(basename ${PWD})" == "deployments" ]]; then
cd ..
fi
# chart source: https://github.com/grafana/helm-charts
repository="https://grafana.github.io/helm-charts"
chart="promtail"
version="6.11.5"
namespace="${chart}"
cat > "deployments/${chart}.values.yaml" <<EOF
config:
clients:
- url: http://loki.loki.svc.cluster.local:3100/loki/api/v1/push
tolerations:
- effect: NoSchedule
operator: Exists
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
EOF
deployments/install-chart.sh "${repository}" "${chart}" "${namespace}" "${version}" "deployments/${chart}.values.yaml"