Deploying Kubernetes using kubeadm

First of all, we need to log in to one of our three Droplets; the first machine we log into will be our Kubernetes master:

$ ssh root@139.59.180.255

Once logged in, the following two commands check for any updates to the packages and apply them:

$ apt-get update$ apt-get upgrade

Now that we are up-to-date we can install the prerequisite packages. To do this run the following:

$ apt-get install docker.io curl apt-transport-https

You may notice that we are using the version of Docker that is distributed as part of the core Ubuntu 16.04 package repositories rather than the official Docker release. This is because kubeadm doesn't have official support for newer versions of Docker and the recommended version ...

Get Kubernetes for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.