Skip to content

Bootstrap Kubernetes the hard way on Proxmox VMs. No scripts. Using the residential (dynamic) IP address issued by your ISP

License

Notifications You must be signed in to change notification settings

valentineezeja/kubernetes-the-hard-way-on-proxmox-home-network

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes The Hard Way - Proxmox (KVM)

This tutorial walks you through setting up Kubernetes the hard way. This guide is not for someone looking for a fully automated tool to bring up a Kubernetes cluster. Kubernetes The Hard Way is optimized for learning, which means taking the long route to ensure you 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 stop you from learning!

Shout out to Kelsey Hightower who created the original guide, and DushanthaS who created the Proxmox-specific guide that requires a dedicated/static public IP address. However, not everyone has access to a dedicated public IP address, especially in home environments where IP addresses are dynamically assigned by Internet Service Providers (ISPs).

To address this, I have modified the setup to work with a dynamic home router IP address using Cloudflare DNS and DDNS (Dynamic DNS) services. This approach allows for a more accessible and cost-effective Kubernetes setup without the need for a static IP.

My Solution

Here’s a brief overview of the steps I used to get my Kubernetes setup working with a dynamic home router IP address:

  1. Cloudflare DNS:
    • Create an account on Cloudflare and add your domain.
    • Configure DNS settings to use Cloudflare's nameservers.
  1. DDNS Configuration:
    • Set up a DDNS service (I used DDclient) to update Cloudflare DNS records with your current public IP address, and each time a new IP is assigned.
    • Ensure the DDNS service runs as a daemon on the admin server to handle IP changes.
  1. Kubernetes Configuration:
    • Modify Kubernetes setup scripts to use the domain managed by Cloudflare.

By following these steps, you can achieve a functional Kubernetes setup using a dynamic IP address, making it easier to follow this guide without a dedicated/static public IP address.

Overview of the Network Architecture

architecture network

Copyright

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Target Audience

The target audience for this tutorial is someone planning to support a production Kubernetes cluster and wants to understand how everything fits together, in particular if you want to use a Proxmox hypervisor and do not have a dedicated/static public IP address.

Cluster Details

Kubernetes The Hard Way guides you through bootstrapping a highly available Kubernetes cluster with end-to-end encryption between components and RBAC authentication.

Labs

This tutorial assumes you have access to a Proxmox hypervisor with at least 25GB free RAM and 140GB free HDD/SSD. While a Proxmox server is used for basic infrastructure requirements the lessons learned in this tutorial can be applied to other platforms (ESXi, KVM, VirtualBox, ...).

About

Bootstrap Kubernetes the hard way on Proxmox VMs. No scripts. Using the residential (dynamic) IP address issued by your ISP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published