File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,6 @@ if [ "${CLOUD_PROVIDER}" == "openstack" ]; then
133
133
fi
134
134
fi
135
135
136
- # warn if users are running with swap allowed
137
- if [ " ${FAIL_SWAP_ON} " == " false" ]; then
138
- echo " WARNING : The kubelet is configured to not fail even if swap is enabled; production deployments should disable swap."
139
- fi
140
-
141
136
if [ " $( id -u) " != " 0" ]; then
142
137
echo " WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root." 2>&1
143
138
fi
@@ -788,6 +783,11 @@ function start_kubelet {
788
783
${KUBELET_FLAGS}
789
784
)
790
785
786
+ # warn if users are running with swap allowed
787
+ if [ " ${FAIL_SWAP_ON} " == " false" ]; then
788
+ echo " WARNING : The kubelet is configured to not fail even if swap is enabled; production deployments should disable swap."
789
+ fi
790
+
791
791
if [[ " ${REUSE_CERTS} " != true ]]; then
792
792
generate_kubelet_certs
793
793
fi
You can’t perform that action at this time.
0 commit comments