Bug 1389 fixed. Added --stable-repo-url https://charts.helm.sh/stable to helm init...
[osm/devops.git] / installers / k8s / install_osm_k8s_monitoring.sh
index badba81..a7a2d3b 100755 (executable)
@@ -124,7 +124,7 @@ if [ $? == 1 ] ; then
     kubectl --namespace kube-system create serviceaccount tiller
     kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
     # HELM initialization
-    helm init --service-account tiller
+    helm init --stable-repo-url https://charts.helm.sh/stable --service-account tiller
 
     # Wait for Tiller to be up and running
     while true
@@ -157,7 +157,7 @@ helm install --namespace $NAMESPACE --version=$V_OPERATOR --name osm-monitoring
 # MongoDB
 # exporter
 echo "Creating stable/prometheus-mongodb-exporter"
-helm install --namespace $NAMESPACE --version=$V_MONGODB_EXPORTER --name osm-mongodb-exporter --set image.tag='0.10.0',mongodb.uri='mongodb://mongo.osm:27017' stable/prometheus-mongodb-exporter
+helm install --namespace $NAMESPACE --version=$V_MONGODB_EXPORTER --name osm-mongodb-exporter --set image.tag='0.10.0',mongodb.uri='mongodb://mongodb-k8s.osm:27017' stable/prometheus-mongodb-exporter
 #dashboard:
 kubectl -n $NAMESPACE apply -f $HERE/mongodb-exporter-dashboard.yaml