其他分享
首页 > 其他分享> > K8S - Swap memory management

K8S - Swap memory management

作者:互联网

Swap memory management

FEATURE STATE: Kubernetes v1.22 [alpha]

Prior to Kubernetes 1.22, nodes did not support the use of swap memory, and a kubelet would by default fail to start if swap was detected on a node. In 1.22 onwards, swap memory support can be enabled on a per-node basis.

To enable swap on a node, the NodeSwap feature gate must be enabled on the kubelet, and the --fail-swap-on command line flag or failSwapOn configuration setting must be set to false.

Warning: When the memory swap feature is turned on, Kubernetes data such as the content of Secret objects that were written to tmpfs now could be swapped to disk.

 

Copied from: https://kubernetes.io/docs/concepts/architecture/nodes/

标签:node,management,Kubernetes,Swap,memory,fail,K8S,swap
来源: https://www.cnblogs.com/zhangzhihui/p/16401111.html