Created
May 14, 2019 18:37
-
-
Save sfxworks/d4a10cc8d2fa4ec1f489337bc54e8025 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
apt-get update | |
apt-get upgrade -y | |
apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb https://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
apt-get update | |
apt install docker-ce -y | |
apt-get install -y kubelet kubeadm kubectl | |
apt-mark hold kubelet kubeadm kubectl | |
modprobe br_netfilter | |
echo '1' > /proc/sys/net/ipv4/ip_forward | |
cat <<EOF >/etc/kubernetes/cloud.conf | |
[Global] | |
username=$OS_USERNAME | |
password=$OS_PASSWORD | |
auth-url=$OS_KEYSTONE_ENDPOINT | |
tenant-id=$OS_TENANT_ID | |
tenant-name=$OS_TENANT_ID | |
domain-name=Default | |
region=$OS_REGION | |
[BlockStorage] | |
bs-version=v3 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment