For enabling swap memory check the below link :
https://jinojoseph.blogspot.com/2019/10/enable-swap-memory-using-swapfile-in.html
# sudo vi /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
Add the KUBELET_EXTRA_ARGS line as below:
----------------------------------------
Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false"
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
Now kubelet.service changed on disk. Run 'systemctl daemon-reload' to reload units
# sudo systemctl daemon-reload
# sudo systemctl restart kubelet
# sudo systemctl status kubelet
That is all cheers :p
https://jinojoseph.blogspot.com/2019/10/enable-swap-memory-using-swapfile-in.html
# sudo vi /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
Add the KUBELET_EXTRA_ARGS line as below:
----------------------------------------
Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false"
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
Now kubelet.service changed on disk. Run 'systemctl daemon-reload' to reload units
# sudo systemctl daemon-reload
# sudo systemctl restart kubelet
# sudo systemctl status kubelet
That is all cheers :p
Comments