Last active
October 30, 2018 00:37
-
-
Save neofob/4b85f7b6c1f16e9a043baa09ce139710 to your computer and use it in GitHub Desktop.
setup baremetal k8s
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/sh | |
apt-get update && apt-get dist-upgrade -yq | |
apt-get install -yq vim git apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update && apt-get install -yq docker-ce | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list | |
apt-get update && apt-get install -yq kubelet kubeadm kubernetes-cni | |
# modules for overlay network | |
for m in ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh; do modprobe $m; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment