Merge pull request #14379 from derekwaynecarr/local_up_cluster_enforce_cfs_quota

Add flag to enable cpu limit enforcement when using local up cluster
pull/6/head
Dawn Chen 2015-10-12 13:24:06 -07:00
commit 60d9d2fa3f
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,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.
@ -262,6 +263,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