Created
February 7, 2018 05:18
-
-
Save ardyantohermawan/0ec6d0f5272c20b8421ddd1a12b55a46 to your computer and use it in GitHub Desktop.
Install kubelet
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 | |
# Download latest kubectl version | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
# change permission to executable binary | |
chmod +x ./kubectl | |
# move to /usr/local/bin | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
# Download kubectl config from the master server, 192.168.33.10 | |
scp root@"master ip":/etc/kubernetes/admin.conf ~/.kube/config | |
# We need this to run pods on master node cuz servers are expensive | |
kubectl taint nodes --all dedicated- | |
# Install weave CNI, there are other choices, but weave is probably the easist | |
kubectl apply -f https://git.io/weave-kube-1.6 | |
# Install Dashboard for nice graphical web interface. | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml | |
# Proxy dashboard so we can view it locally | |
kubectl proxy | |
# Set master token & IP address | |
kubeadm join --token="master token" "master ip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment