两种方法:
1.disable swap
2. 配置参数
#echo 'Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false"' > /etc/systemd/system/kubelet.service.d/90-local-extras.conf
#systemctl daemon-reload
#systemctl restart kubelet
两种方法:
1.disable swap
2. 配置参数
#echo 'Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false"' > /etc/systemd/system/kubelet.service.d/90-local-extras.conf
#systemctl daemon-reload
#systemctl restart kubelet