This tutorial will walk you through setting up Kubernetes the hard way. This guide is not for people looking for a fully automated command to bring up a Kubernetes cluster. If that's you then check out Google Container Engine, or the Getting Started Guides.
It has been forked from Kelsey Hightower's Kubernetes The Hard Way, but uses baremetal rather than AWS or GCE
This tutorial is optimized for learning, which means taking the long route to help people understand each task required to bootstrap a Kubernetes cluster.
The results of this tutorial should not be viewed as production ready, and may receive limited support from the community, but don't let that prevent you from learning!
The target audience for this tutorial is someone planning to support a production Kubernetes cluster and wants to understand how everything fits together. After completing this tutorial I encourage you to automate away the manual steps presented in this guide.
- This tutorial is for educational purposes only. There is much more configuration required for a production ready cluster.
- Kubernetes 1.5.1
- Docker 1.12.1
- etcd 3.0.10
- CNI Based Networking
- Secure communication between all components (etcd, control plane, workers)
- Default Service Account and Secrets
The resulting cluster will be missing the following items:
This should be virtually agnostic in terms of baremetal, however this tutorial is based on Vultr. As we are using Ubuntu, it should work on any provider, such as Digital Ocean or Linode
This tutorial assumes you have access to one of the following:
While GCP or AWS will be used for basic infrastructure needs, the things learned in this tutorial apply to every platform.
- Cloud Infrastructure Provisioning
- Setting up a CA and TLS Cert Generation
- Bootstrapping an H/A etcd cluster
- Bootstrapping an H/A Kubernetes Control Plane
- Bootstrapping Kubernetes Workers
- Configuring the Kubernetes Client - Remote Access
- Managing the Container Network Routes
- Deploying the Cluster DNS Add-on
- Smoke Test
- Cleaning Up