-
-
Save krotkiewicz/b26d0d5cb0c3e5c61cd807101ecbf387 to your computer and use it in GitHub Desktop.
1.sh
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
$ doctl compute droplet create node2 --region fra1 --size 2gb --image ubuntu-16-04-x64 --enable-private-networking --ssh-keys 79:29:54:77:13:2f:9c:b8:06:3e:8b:fe:8d:c0:d7:ba | |
ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image Status Tags | |
63460608 node2 46.101.98.124 2048 2 40 fra1 Ubuntu 16.04.3 x64 new | |
$ doctl compute droplet create node2 --region fra1 --size 2gb --image ubuntu-16-04-x64 --enable-private-networking --ssh-keys 79:29:54:77:13:2f:9c:b8:06:3e:8b:fe:8d:c0:d7:ba | |
ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image Status Tags | |
63460608 node2 46.101.98.124 2048 2 40 fra1 Ubuntu 16.04.3 x64 new | |
$ ssh root@46.101.98.124 | |
root@node2 $ apt-get update && apt-get install -y docker.io | |
root@node2 $ wget -q --show-progress https://dl.k8s.io/v1.7.6/kubernetes-server-linux-amd64.tar.gz | |
root@node2 $ tar xzf kubernetes-server-linux-amd64.tar.gz | |
root@node2 $ mv kubernetes/server/bin/* /usr/local/bin/ | |
root@node2 $ rm -rf * | |
root@node2 $ export MASTER_IP=10.135.53.41 | |
root@node2 $ kubelet --api-servers=$MASTER_IP:8080 &> /tmp/kubelet.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment