File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -520,15 +520,18 @@ kubectl create namespace "${MONITORING_NAMESPACE}" --dry-run=client -o yaml | ku
520520helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
521521helm repo update
522522
523+ curl -sSL " https://raw.githubusercontent.com/Cosmo-Tech/azure-platform-deployment-tools/main/deployment_scripts/$API_VERSION /kube-prometheus-stack-template.yaml" \
524+ -o " ${WORKING_DIR} " /kube-prometheus-stack-template.yaml
525+
523526MONITORING_NAMESPACE_VAR=${MONITORING_NAMESPACE} \
524527PROM_STORAGE_CLASS_NAME_VAR=${PROM_STORAGE_CLASS_NAME:- " standard" } \
525528PROM_STORAGE_RESOURCE_REQUEST_VAR=${PROM_STORAGE_RESOURCE_REQUEST:- " 10Gi" } \
526529PROM_CPU_MEM_LIMITS_VAR=${PROM_CPU_MEM_LIMITS:- " 2Gi" } \
527530PROM_CPU_MEM_REQUESTS_VAR=${PROM_CPU_MEM_REQUESTS:- " 2Gi" } \
528531PROM_REPLICAS_NUMBER_VAR=${PROM_REPLICAS_NUMBER:- " 1" } \
529532PROM_ADMIN_PASSWORD_VAR=${PROM_ADMIN_PASSWORD:- $(date +% s | sha256sum | base64 | head -c 32)} \
530- envsubst < " ${HELM_CHARTS_BASE_PATH } " /kube-prometheus-stack-template.yaml > kube-prometheus-stack.yaml
533+ envsubst < " ${WORKING_DIR } " /kube-prometheus-stack-template.yaml > " ${WORKING_DIR} " / kube-prometheus-stack.yaml
531534
532535helm upgrade --install prometheus-operator prometheus-community/kube-prometheus-stack \
533536 --namespace " ${MONITORING_NAMESPACE} " \
534- --values " kube-prometheus-stack.yaml"
537+ --values " ${WORKING_DIR} / kube-prometheus-stack.yaml"
You can’t perform that action at this time.
0 commit comments