Last active
August 21, 2019 11:56
-
-
Save SpencerSharkey/c45fc9d893f603b2f2f09b68dbc21ef0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
swapoff -a | |
echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter | |
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter | |
sudo apt-get install -y docker.io | |
sudo systemctl enable docker | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add | |
apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main" | |
apt-get install -y kubeadm=1.14.3-00 kubectl=1.14.3-00 kubelet=1.14.3-00 | |
apt-get install -y resolvconf | |
echo "nameserver 1.1.1.1" > /etc/resolvconf/resolv.conf.d/head | |
service resolvconf restart | |
iptables -P FORWARD ACCEPT | |
ip link add dummy0 type dummy | |
ip addr add 185.115.241.101/32 dev dummy0 | |
ip addr add 185.115.241.102/32 dev dummy0 | |
ip addr add 185.115.241.103/32 dev dummy0 | |
ip addr add 185.115.241.104/32 dev dummy0 | |
ip addr add 185.115.241.105/32 dev dummy0 | |
ifconfig dummy0 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment