From a9defc413a915219ed2cb921e4f8fdfefe148fbd Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Thu, 13 Nov 2014 23:00:37 -0800 Subject: [PATCH] Don't show Kubernetes username & password to console for heapster. --- cluster/gce/util.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index bfd5de2d436..a11dd966548 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -612,8 +612,11 @@ function setup-monitoring { if "${kubectl}" create -f "${KUBE_ROOT}/examples/monitoring/influx-grafana-pod.json" &> /dev/null \ && "${kubectl}" create -f "${KUBE_ROOT}/examples/monitoring/influx-grafana-service.json" &> /dev/null \ && "${kubectl}" create -f "${KUBE_ROOT}/examples/monitoring/heapster-pod.json" &> /dev/null; then - dashboardIP="http://$KUBE_USER:$KUBE_PASSWORD@`${kubectl} get -o json pod influx-grafana | grep hostIP | awk '{print $2}' | sed 's/[,|\"]//g'`" - echo "Grafana dashboard will be available at $dashboardIP. Wait for the monitoring dashboard to be online. Use the master user name and password for the dashboard." + dashboardIP="http://`${kubectl} get -o json pod influx-grafana | grep hostIP | awk '{print $2}' | sed 's/[,|\"]//g'`" + echo + echo "Grafana dashboard will be available at $dashboardIP. Wait for the monitoring dashboard to be online." + echo "Use the master user name and password for the dashboard." + echo else echo "Failed to Setup Monitoring" teardown-monitoring