Setting up Kubernetes cluster using Docker
We now have a basic understanding of Kubernetes and its components. Though this is sufficient to get started with our recipes, it is strongly recommended that you learn more about Kubernetes from Google's documentation at http://kubernetes.io/docs/ before you start using Kubernetes at scale.
Getting ready
In this recipe, we will orchestrate a local Dockerized Kubernetes cluster.
The easiest way to create a Kubernetes cluster at scale is using Google Cloud Platform at https://cloud.google.com/container-engine . If you have a Google account, you should be able to use Google Cloud Platform right away. But for simplicity, in this recipe, we will be building our Kubernetes cluster on our local machines using Docker.
There are several ways to run a Dockerized Kubernetes cluster, including but not limited to:
Building our own Docker Compose file
Using
kid
Using Minikube
Building our own Docker Compose file might take longer compared to using
kid
and Minikube...