Created
February 7, 2018 04:23
-
-
Save ardyantohermawan/98fb86616593a98bef71bb3d286715b2 to your computer and use it in GitHub Desktop.
Kubernetes Master
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 | |
# Prepare for new repos | |
sudo apt-get -y install apt-transport-https ca-certificates software-properties-common curl | |
# Add docker repo | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
# Add kubernetes repo | |
sudo curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
sudo add-apt-repository \ | |
"deb https://apt.kubernetes.io/ \ | |
kubernetes-$(lsb_release -cs) \ | |
main" | |
sudo apt-get update && apt-get install -y docker-ce kubelet kubeadm kubernetes-cni | |
# Start Master | |
#kubeadm init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment