Use helm_apply and misc fixes

This commit is contained in:
Jonas Juselius
2020-11-06 15:46:25 +01:00
parent 5caf819d77
commit 36b75b56fc
13 changed files with 67 additions and 58 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
TOP="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
crd_version="v0.42.0"
namespace=prometheus
@@ -29,13 +30,12 @@ install_prometheus_crds () {
done
}
cd $TOP
. ../config.sh
install_prometheus_crds
kubectl_apply_files $namespace "${charts[@]}"
helm template \
-n $namespace \
-f values.yaml \
prometheus \
prometheus-community/kube-prometheus-stack \
| kubectl_apply $namespace
install_prometheus_crds
kubectl_apply_files $namespace "${charts[@]}"
helm_apply $namespace prometheus prometheus-community/kube-prometheus-stack