M.HMuhammad Hashir
  • Work
  • Principles
  • Experience
  • Contact
WorkCV ↓
← All work

SymCloud · confidential high-security client

Air-gapped Kubernetes

A high-availability cluster for a site with no internet access

RoleDesigned and built it

Problem

A high-security client needed a highly available cluster on a network with no internet access.

Actions

  • Designed a three-server cluster that keeps running if one fails.
  • Packed everything into one offline installer bundle.
  • Added load balancing and routing so the cluster has stable addresses without any cloud service.

Result

Zero internet

needed to install or run it

Architecture primary focus data outside
OFFLINE BUNDLESERVER · ETCDSERVER · ETCDSERVER · ETCDMETALLBTRAEFIKWORKLOADS
OFFLINE BUNDLESERVER · ETCDSERVER · ETCDSERVER · ETCDMETALLBTRAEFIKWORKLOADS

Details

The client's network is air-gapped: nothing inside it can reach the internet. Every image, binary and configuration file has to arrive on a disk, and the cluster has to stay up if a server fails.

The design

K3s with its built-in etcd database across three server nodes, so the control plane survives losing one. The default load balancer is disabled and replaced with MetalLB in Layer 2 mode, which gives the Traefik ingress a stable IP from a reserved range on the local network.

Proving it on the client's side

The setup is documented for the client's team: every port that must be open between nodes, the order of steps, and a verification sequence. Nodes healthy with the right roles, Traefik holding an address from MetalLB, the default load balancer gone, and Traefik answering on that address.

The hard part

Installing Kubernetes with zero internet

A normal install downloads its binary and pulls container images from the internet. Here, nothing could be downloaded. The K3s binary, its image archive and the Traefik and MetalLB images are packaged into one bundle, with two scripts: one initializes the first server, the other joins further servers or workers using its address and token. Images are loaded into the cluster's image store before K3s starts, so it never tries to reach a registry.

Stack, and why

  • K3s + embedded etcdlightweight Kubernetes with a highly available control plane
  • MetalLB (Layer 2)load-balancer addresses on bare metal
  • Traefikrouting traffic into the cluster

Next case study

.NET microservices on Docker →