Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Last active December 13, 2018 13:30
Show Gist options
  • Save richardsonlima/8d7d3823e246af4a6f01436317d9613e to your computer and use it in GitHub Desktop.
Save richardsonlima/8d7d3823e246af4a6f01436317d9613e to your computer and use it in GitHub Desktop.
# on all master Servers
systemctl stop firewalld
systemctl disable firewalld
#firewall-cmd --permanent --add-port=6443/tcp
#firewall-cmd --permanent --add-port=6443/tcp
#firewall-cmd --permanent --add-port=2379-2380/tcp
#firewall-cmd --permanent --add-port=10250/tcp
#firewall-cmd --permanent --add-port=10251/tcp
#firewall-cmd --permanent --add-port=10252/tcp
#firewall-cmd --permanent --add-port=10255/tcp
#firewall-cmd --reload
#modprobe br_netfilter
echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
sysctl -w net.ipv4.ip_forward=1
# on all node Servers
#firewall-cmd --permanent --add-port=10250/tcp
#firewall-cmd --permanent --add-port=10255/tcp
#firewall-cmd --permanent --add-port=30000-32767/tcp
#firewall-cmd --permanent --add-port=6783/tcp
#firewall-cmd --reload
#echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
#sysctl -w net.ipv4.ip_forward=1
swapoff -a
setenforce 0
sed -i --follow-symlinks s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
#sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
getenforce
#yum install epel-release -y
#yum install ansible
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum install -y python36u python36u-libs python36u-devel python36u-pip
#easy_install pip
yum install -y git
python3.6 --version
pip3.6 install ansible netaddr jinja2 --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment