This project provides a K3S image that has the core infrastructure components pre-cached for fast K3S HA cluster deployment with Cilium CNI. This significantly reduces the time to join nodes to a K3s cluster.
- Based on Ubuntu 24.04 LTS
- Pre-installed K3s binary and airgap images
- Pre-pulled Cilium CNI images (including Hubble and UI)
- Optimized for both AMD64 and ARM64 architectures
- Configured for Cilium CNI (Flannel disabled)
- Ready-to-use systemd service with HA support
- Environment variable based configuration for TLS SAN and clustering
- Supports embedded etcd for HA control plane
- Packer >= 1.8.0
- Hetzner Cloud account and API token
- (Optional) Terraform >= 1.0 for automated deployment
- Terraform Example - Production-ready HA cluster deployment
- Environment Config Template - Cluster init config
export HCLOUD_TOKEN="your-hetzner-cloud-api-token"packer init k3s-hcloud.pkr.hclpacker validate k3s-hcloud.pkr.hclBuild both AMD64 and ARM64 images:
packer build k3s-hcloud.pkr.hclBuild only AMD64:
packer build -only='k3s-hcloud-images.hcloud.k3s-amd64' k3s-hcloud.pkr.hclBuild only ARM64:
packer build -only='k3s-hcloud-images.hcloud.k3s-arm64' k3s-hcloud.pkr.hcl