Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
17c3b1ff
Commit
17c3b1ff
authored
Aug 21, 2017
by
Derek Carr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack/local-up-cluster.sh defaults to allow swap
parent
c112dbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+8
-0
No files found.
hack/local-up-cluster.sh
View file @
17c3b1ff
...
...
@@ -31,6 +31,8 @@ KUBELET_AUTHORIZATION_WEBHOOK=${KUBELET_AUTHORIZATION_WEBHOOK:-""}
KUBELET_AUTHENTICATION_WEBHOOK
=
${
KUBELET_AUTHENTICATION_WEBHOOK
:-
""
}
POD_MANIFEST_PATH
=
${
POD_MANIFEST_PATH
:-
"/var/run/kubernetes/static-pods"
}
KUBELET_FLAGS
=
${
KUBELET_FLAGS
:-
""
}
# many dev environments run with swap on, so we don't fail in this env
FAIL_SWAP_ON
=
${
FAIL_SWAP_ON
:-
"false"
}
# Name of the network plugin, eg: "kubenet"
NET_PLUGIN
=
${
NET_PLUGIN
:-
""
}
# Place the config files and binaries required by NET_PLUGIN in these directory,
...
...
@@ -112,6 +114,11 @@ if [ "${CLOUD_PROVIDER}" == "openstack" ]; then
fi
fi
# warn if users are running with swap allowed
if
[
"
${
FAIL_SWAP_ON
}
"
==
"false"
]
;
then
echo
"WARNING : The kubelet is configured to not fail if swap is enabled; production deployments should disable swap."
fi
if
[
"
$(
id
-u
)
"
!=
"0"
]
;
then
echo
"WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root."
2>&1
fi
...
...
@@ -665,6 +672,7 @@ function start_kubelet {
--eviction-soft
=
${
EVICTION_SOFT
}
\
--eviction-pressure-transition-period
=
${
EVICTION_PRESSURE_TRANSITION_PERIOD
}
\
--pod-manifest-path
=
"
${
POD_MANIFEST_PATH
}
"
\
--fail-swap-on
=
"
${
FAIL_SWAP_ON
}
"
\
${
auth_args
}
\
${
dns_args
}
\
${
cni_conf_dir_args
}
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment