From 6874a9489e2d0d214f616e848c5b636616e2d5bf Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Mon, 13 Apr 2015 17:41:39 -0400 Subject: [PATCH] deploy: use secured kubernetes service Signed-off-by: Federico Simoncelli --- deploy/docker/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/docker/run.sh b/deploy/docker/run.sh index 0c4585948c..85a2985202 100755 --- a/deploy/docker/run.sh +++ b/deploy/docker/run.sh @@ -7,8 +7,8 @@ if [ ! -z "$FLAGS" ]; then fi # If in Kubernetes, target the master. -if [ ! -z $KUBERNETES_RO_SERVICE_HOST ]; then - EXTRA_ARGS="--source=kubernetes:http://${KUBERNETES_RO_SERVICE_HOST}:${KUBERNETES_RO_SERVICE_PORT} $EXTRA_ARGS" +if [ ! -z $KUBERNETES_SERVICE_HOST ]; then + EXTRA_ARGS="--source=kubernetes:https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT} $EXTRA_ARGS" fi HEAPSTER="/usr/bin/heapster" @@ -17,7 +17,7 @@ case $SINK in 'influxdb') HEAPSTER="$HEAPSTER --sink influxdb" # Check if in Kubernetes. - if [ ! -z $KUBERNETES_RO_SERVICE_HOST ]; then + if [ ! -z $KUBERNETES_SERVICE_HOST ]; then # TODO(vishh): add support for passing in user name and password. INFLUXDB_ADDRESS="" if [ ! -z $MONITORING_INFLUXDB_SERVICE_HOST ]; then