From 83e7eb1778251054509d267da3162c894a0eb3d1 Mon Sep 17 00:00:00 2001 From: rodriguezgar Date: Thu, 31 Dec 2020 13:36:06 +0100 Subject: [PATCH] Bug 1389 fixed. Added --stable-repo-url https://charts.helm.sh/stable to helm init and changed ligut-ui to ng-ui and mongodb to mongodb-k8s Change-Id: I91b69084ef49cdd27890cea9c5f8baea373f612f Signed-off-by: rodriguezgar --- installers/k8s/install_osm_k8s_monitoring.sh | 4 ++-- installers/k8s/summary-dashboard.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installers/k8s/install_osm_k8s_monitoring.sh b/installers/k8s/install_osm_k8s_monitoring.sh index badba810..a7a2d3ba 100755 --- a/installers/k8s/install_osm_k8s_monitoring.sh +++ b/installers/k8s/install_osm_k8s_monitoring.sh @@ -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 diff --git a/installers/k8s/summary-dashboard.yaml b/installers/k8s/summary-dashboard.yaml index b3574511..8f26b593 100644 --- a/installers/k8s/summary-dashboard.yaml +++ b/installers/k8s/summary-dashboard.yaml @@ -895,7 +895,7 @@ data: "tableColumn": "", "targets": [ { - "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongo\"}", + "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongodb-k8s\"}", "format": "time_series", "refId": "A" } @@ -1408,7 +1408,7 @@ data: "tableColumn": "", "targets": [ { - "expr": "kube_deployment_status_replicas_available{deployment=\"light-ui\"}", + "expr": "kube_deployment_status_replicas_available{deployment=\"ng-ui\"}", "instant": true, "refId": "A" } -- 2.25.1