Monday, February 5, 2018

Your instant Kubernetes cluster

https://blog.alexellis.io/your-instant-kubernetes-cluster

This is a condensed and updated version of my previous tutorial Kubernetes in 10 minutes.
I've removed just about everything I can so this guide still makes
sense. Use it when you want to create a cluster on the cloud or
on-premises as fast as possible.

1.0 Pick a host

We will be using Ubuntu 16.04 for this guide so that you can
copy/paste all the instructions. Here are several environments where
I've tested this guide. Just pick where you want to run your hosts.

2.0 Install networking

Many networking providers are available for Kubernetes, but none are included by default, so let's use Weave Net from Weaveworks
which is one of the most popular options in the Kubernetes community.
It tends to work out of the box without additional configuration.

If you have private networking enabled on your host then you may need
to alter the private subnet that Weavenet uses for allocating IP
addresses to Pods (containers). Here's an example of how to do that:

If you want to see my running through creating a cluster step-by-step and showing you how kubectl works then checkout my video below and make sure you subscribe
You can also get an "instant" Kubernetes cluster on your Mac for development using Minikube or Docker for Mac Edge edition. Read my review and first impressions here.