K8S主机环境配置(二)

# 安装补丁包
# yum install -y conntrack ipvsadm ipset jq iptables curl sysstat libsecomp wget net-tools git vim
# 禁用防火墙
# systemctl stop firewalld && systemctl disable firewalld
# yum -y install iptables-services && systemctl start iptables && systemctl enable iptables
# iptables -F && service iptables save #关闭SELINUX
# swapoff -a && sed -i ‘/swap/s/^\(.*\)$/#\1/g‘ /etc/fstab
# setenforce 0 && sed -i ‘s/^SELINUX=.*/SELINUX=disabled/‘ /etc/selinux/config

相关推荐