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 <trevor.tao@arm.com>
+#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 \
if ! kubectl get nodes; then
sudo kubeadm config images pull
sudo kubeadm init \