Skip to content

Instantly share code, notes, and snippets.

@ardyantohermawan
Created February 7, 2018 04:23
Show Gist options
  • Save ardyantohermawan/98fb86616593a98bef71bb3d286715b2 to your computer and use it in GitHub Desktop.
Save ardyantohermawan/98fb86616593a98bef71bb3d286715b2 to your computer and use it in GitHub Desktop.
Kubernetes Master
#!/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