[Deploying a basic React site pt 1] Setting up a self-hosted Kubernetes cluster
The article describes setting up a Kubernetes cluster on a home server to deploy a React application, utilizing Dynamic DNS, Cloudflare for security, and K3s for lightweight management.
Read original articleThe article outlines the process of setting up a Kubernetes cluster on a home server to deploy a basic React application. The author, motivated by a desire to over-engineer a simple task of splitting restaurant bills among friends, opts for a self-hosted solution rather than using cloud services. The setup begins with acquiring a refurbished HP Z2 Mini G3 workstation, installing Ubuntu Server, and configuring port forwarding on a home router to allow external access. The author implements Dynamic DNS (DDNS) to manage the changing IP address of the server and secures the setup using Cloudflare for DDoS protection and SSL/TLS encryption. A firewall is configured to restrict access to the server, allowing only traffic from Cloudflare's IP addresses. The lightweight K3s Kubernetes distribution is installed, and a sample application is deployed to test the configuration. The article concludes with a successful deployment of a simple application that serves "Hello, World!" and hints at future articles that will cover more advanced topics like ArgoCD and Keycloak SSO.
- The author sets up a Kubernetes cluster on a home server to deploy a React application.
- Dynamic DNS and Cloudflare are used for managing IP addresses and securing the setup.
- A firewall is configured to restrict access to the server.
- K3s is chosen for its lightweight and easy installation.
- The article serves as a guide for over-engineering simple tasks in software development.
Related
My First Kubernetes: k3s 'cluster' on 3 Orange Pi Zero 3's
Setting up a Kubernetes cluster with Orange Pi Zero 3 boards involves control and worker nodes, deploying apps, and overcoming ARM64 image compatibility challenges. Detailed steps, including Dashboard setup and user management, are shared, offering practical insights for Kubernetes enthusiasts.
A skeptic's first contact with Kubernetes
The author shares their journey from skepticism to understanding Kubernetes, highlighting its workload management, key components, and challenges like complexity, scaling, and configuration, while recognizing its architectural value.
Introduction to Kubernetes (k8) – a quick lookback
Kubernetes has grown significantly since 2018, increasing to 109,000 stars and 3,674 contributors by 2024. It offers features like scaling, automated rollouts, and self-healing, encouraging hands-on learning for newcomers.
Server Setup Basics for Self Hosting
The article outlines a guide for setting up a secure server for self-hosting applications, emphasizing SSH security, user management, log management, regular backups, network safety, and recommending NGINX as a web server.
Set Up a $4/Mo Hetzner VM to Skip the Serverless Tax
The article outlines a beginner-friendly guide to setting up a Hetzner virtual machine for $4/month, covering SSL installation, DNS configuration, and web application deployment using GitHub and PM2.
I await with amusement the first time you discover the agony of finalizers.
No love for Argo, Screwdriver, Tekton or Spinnaker?
You aren't deploying your simple React site to Kubernetes manually right? RIGHT?!?
Well done.
Related
My First Kubernetes: k3s 'cluster' on 3 Orange Pi Zero 3's
Setting up a Kubernetes cluster with Orange Pi Zero 3 boards involves control and worker nodes, deploying apps, and overcoming ARM64 image compatibility challenges. Detailed steps, including Dashboard setup and user management, are shared, offering practical insights for Kubernetes enthusiasts.
A skeptic's first contact with Kubernetes
The author shares their journey from skepticism to understanding Kubernetes, highlighting its workload management, key components, and challenges like complexity, scaling, and configuration, while recognizing its architectural value.
Introduction to Kubernetes (k8) – a quick lookback
Kubernetes has grown significantly since 2018, increasing to 109,000 stars and 3,674 contributors by 2024. It offers features like scaling, automated rollouts, and self-healing, encouraging hands-on learning for newcomers.
Server Setup Basics for Self Hosting
The article outlines a guide for setting up a secure server for self-hosting applications, emphasizing SSH security, user management, log management, regular backups, network safety, and recommending NGINX as a web server.
Set Up a $4/Mo Hetzner VM to Skip the Serverless Tax
The article outlines a beginner-friendly guide to setting up a Hetzner virtual machine for $4/month, covering SSL installation, DNS configuration, and web application deployment using GitHub and PM2.