Add flag to enable cpu limit enforcement when using local up cluster

pull/6/head
derekwaynecarr 2015-09-22 16:28:22 -04:00
parent e535e27e82
commit 321b4b577d
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-"docker"}
RKT_PATH=${RKT_PATH:-""}
RKT_STAGE1_IMAGE=${RKT_STAGE1_IMAGE:-""}
CHAOS_CHANCE=${CHAOS_CHANCE:-0.0}
CPU_CFS_QUOTA=${CPU_CFS_QUOTA:-false}
function test_apiserver_off {
# For the common local scenario, fail fast if server is already running.
@ -258,6 +259,7 @@ function start_kubelet {
--hostname-override="127.0.0.1" \
--address="127.0.0.1" \
--api-servers="${API_HOST}:${API_PORT}" \
--cpu-cfs-quota=${CPU_CFS_QUOTA} \
--port="$KUBELET_PORT" >"${KUBELET_LOG}" 2>&1 &
KUBELET_PID=$!
else