Skip to content

brightzheng100/kubernetes-the-hard-way-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes The Hard Way on Docker

illustration

It's a must-have skill along the CKA journey by using not just kubectl, but administrator tools like kubeadm to build Kubernetes cluster from scratch.

While reviewing the Kubernetes the Kubeadmin Way I compiled last year, during my CKA preparation, well, I feel that it's quite costly on any of cloud providers and I won't suggest you to do so just for practice purposes.

There are a lot of great tools which can help you craft a Kubernetes cluster within minutes on Docker, like:

But, we want the hard way instead of automated way so we can learn more.

That's the motivation of this repo and I'll guide you through to:

  1. build a set of workable Docker images;
  2. spin up the Kubernetes nodes by Docker containers;
  3. bootstrap and eventually build a "fully-fledged" multi-node Kubernetes, on Docker, within exactly your laptop!

Target Audience

The target audience for this tutorial is someone planning to build highly available OSS Kubernetes clusters by purely using the official tooling Kubeadm, simply on your laptop's Docker, without any real $$$ cost like what we do on cloud providers!

OS, Tools, Components and Versions

  • Working Laptop: MacBook Pro with macOS Catalina, but I believe it should work wherever Docker runs
  • Docker Desktop with Engine v19.03.8
  • kubeadm v1.18.5, as of writing
  • kubernetes v1.8.5, as of writing
  • containerd v1.3.4
  • runc v1.0.0-rc90
  • Any of the CNIs, like:

Labs

This tutorial assumes you have Docker installed.

Materials / References

  • /images: the images I use to spin up the cluster, with Dockerfiles inside
  • /config: the folder structure and files I use to configure and bootstrap the Kubernetes
  • /docs: the step-by-step labs

Furture Works

  • To do more research to rebuild the core k8s-ready image with bare minimum components pre-installed;
  • To spin up the containers by using footloose instead of bash scripts

About

Another Kubernetes the hard way, but purely on Docker within your laptop!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published