Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

deploy: use secured kubernetes service #232

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down