
This patchset allows for overrides to be set and ingested by the gates as well as the AIO. Change-Id: I27b6d476d9f3b360edc03dd84669ca236cbfa337
24 lines
816 B
Bash
Executable File
24 lines
816 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
: ${EXTRA_HELM_ARGS_LOKI_STACK}:="$(./tools/deployment/common/get-values-overrides.sh loki)"}
|
|
: ${EXTRA_HELM_ARGS_GRAFANA}:="$(./tools/deployment/common/get-values-overrides.sh grafana)"}
|
|
NS="loki-stack"
|
|
GNS="grafana"
|
|
|
|
kubectl create ns $NS || true
|
|
kubectl create ns $GNS || true
|
|
helm repo add grafana https://grafana.github.io/helm-charts
|
|
helm repo update
|
|
|
|
# install loki-stack with Loki and Promtail from Grafana helm charts repo
|
|
helm upgrade --install loki grafana/loki-stack --namespace $NS $EXTRA_HELM_ARGS_LOKI_STACK
|
|
./tools/deployment/common/wait-for-pods.sh $NS
|
|
|
|
helm status loki
|
|
|
|
# install Grafana from Grafana helm charts repo
|
|
helm upgrade --install grafana grafana/grafana --namespace $GNS $EXTRA_HELM_ARGS_GRAFANA
|
|
./tools/deployment/common/wait-for-pods.sh $GNS
|
|
|
|
helm status grafana |