Skip to content

Commit

Permalink
Added -E to sudo command
Browse files Browse the repository at this point in the history
  • Loading branch information
markturansky committed Mar 4, 2015
1 parent cb1e044 commit a6a6947
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hack/local-up-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cleanup()
trap cleanup EXIT

APISERVER_LOG=/tmp/kube-apiserver.log
sudo "${GO_OUT}/kube-apiserver" \
sudo -E "${GO_OUT}/kube-apiserver" \
--v=${LOG_LEVEL} \
--address="${API_HOST}" \
--port="${API_PORT}" \
Expand All @@ -120,14 +120,14 @@ echo "Waiting for apiserver to come up"
kube::util::wait_for_url "http://${API_HOST}:${API_PORT}/api/v1beta1/pods" "apiserver: " 1 10 || exit 1

CTLRMGR_LOG=/tmp/kube-controller-manager.log
sudo "${GO_OUT}/kube-controller-manager" \
sudo -E "${GO_OUT}/kube-controller-manager" \
--v=${LOG_LEVEL} \
--machines="127.0.0.1" \
--master="${API_HOST}:${API_PORT}" >"${CTLRMGR_LOG}" 2>&1 &
CTLRMGR_PID=$!

KUBELET_LOG=/tmp/kubelet.log
sudo "${GO_OUT}/kubelet" \
sudo -E "${GO_OUT}/kubelet" \
--v=${LOG_LEVEL} \
--etcd_servers="http://127.0.0.1:4001" \
--hostname_override="127.0.0.1" \
Expand All @@ -138,13 +138,13 @@ sudo "${GO_OUT}/kubelet" \
KUBELET_PID=$!

PROXY_LOG=/tmp/kube-proxy.log
sudo "${GO_OUT}/kube-proxy" \
sudo -E "${GO_OUT}/kube-proxy" \
--v=${LOG_LEVEL} \
--master="http://${API_HOST}:${API_PORT}" >"${PROXY_LOG}" 2>&1 &
PROXY_PID=$!

SCHEDULER_LOG=/tmp/kube-scheduler.log
sudo "${GO_OUT}/kube-scheduler" \
sudo -E "${GO_OUT}/kube-scheduler" \
--v=${LOG_LEVEL} \
--master="http://${API_HOST}:${API_PORT}" >"${SCHEDULER_LOG}" 2>&1 &
SCHEDULER_PID=$!
Expand Down

0 comments on commit a6a6947

Please sign in to comment.