Skip to content

There are quite a few hard ways to create a Kubernetes cluster, but not so many easy ways to do it.

Notifications You must be signed in to change notification settings

unack/kubernetes-the-easy-way

Repository files navigation

kubernetes-the-easy-way

Kubernetes - The not so hard way

Welcome to a short guide to set up a "bare metal" (:metal:) stand-alone Kubernetes cluster !

If you want to sandbox your own Kubernetes cluster, without any AWS, GCP or Azure account, let's go.

What we need, 2 servers, with different IP in the same network :

  • 1 server, as ControlPlane #1, aka our planemaster
    • OS : Debian
    • CPU Cores : 2 or more
    • Minimal RAM : 2 Go
      • Optionally, without Swap (we will disable it if there's one)
    • Sudo
      • A sudoer user :)
  • 1 server, as Pod #1
    • Same as PlaneControl, but
    • Minimal RAM : 4 Go
      • Optionnaly, without Swap

Kubernetes picked(/opinionated) options :

  • Container : Containerd (yes, without Docker)
  • Network Add-on : Weaver

Tested on 2021-07-05, with Kubernetes 1.21

All servers are meant to be executed on all servers.

👣 (All servers) First, let's disable the Swap

👣 (All servers) Initial setup before Kuberneting

👣 Kubernetes initialisation: Init PlaneControl

👣 Kubernetes initialisation: Add a Pod

👣 Kubernetes Dashboard

👣 Kubernetes CLI Completion

About

There are quite a few hard ways to create a Kubernetes cluster, but not so many easy ways to do it.

Topics

Resources

Stars

Watchers

Forks