Use helm_apply and misc fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user