unbuntu20

# 禁用 swap
sudo swapoff -a
# 确保时区和时间正确
sudo timedatectl set-timezone Asia/Shanghai
#修改后,如果想使得系统日志的时间戳也立即生效,则:
sudo systemctl restart rsyslog 
# 每个机器不会自动suspend(待机/休眠)
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

https://zhuanlan.zhihu.com/p/138554103

Ansible

Ansible Playbook进行生产级别高可用kubernetes集群