From: trevortao Date: Wed, 13 Mar 2019 03:35:41 +0000 (+0800) Subject: Add Extra Flags to Kubelet to enable extra feature X-Git-Tag: 1.0.0~38 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F464%2F1;p=iec.git Add Extra Flags to Kubelet to enable extra feature Add the following extra flags to 10-kubeadm.conf for Kubelet to start correctly and support hugepage requirement by SEBA and other pods --fail-swap-on=false --feature-gates HugePages=false Change-Id: I9e3084cd8b47d3d1b74165782340521c48acfad6 Signed-off-by: trevortao --- diff --git a/src/foundation/scripts/k8s_master.sh b/src/foundation/scripts/k8s_master.sh index 1782769..5eb9082 100755 --- a/src/foundation/scripts/k8s_master.sh +++ b/src/foundation/scripts/k8s_master.sh @@ -10,6 +10,9 @@ if [ -z "${MGMT_IP}" ]; then exit 1 fi +#Add extra flags to Kubelet +sed '/Environment=\"KUBELET_CONFIG_ARGS/a\Environment=\"KUBELET_EXTRA_ARGS=--fail-swap-on=false --feature-gates HugePages=false\"' -i /etc/systemd/system/kubelet.service.d/10-kubeadm.conf + if ! kubectl get nodes; then sudo kubeadm config images pull sudo kubeadm init \