
·9 min read
Kubernetes Distributions - When to Use Which K8s Flavor
Which Kubernetes to run for cloud, on-prem, airgapped, edge, and local dev, written as decision rules instead of a feature matrix.
Every architecture meeting I've been in eventually hits the same question: "Which Kubernetes should we use?" There's no single answer, and picking wrong can cost you months of migration.
They all run containers, they all speak kubectl, and they all look the same in a demo. The differences show up later: on upgrade day, when the network to the outside world goes away, or when a compliance team shows up with a checklist.
Where my opinions come from: day to day I run GKE and AKS in the cloud, RKE2 on-prem (including fully airgapped clusters that pull everything from a private registry), and MicroK8s. The distributions I only know from docs and other people's clusters (OpenShift, Tanzu, k0s) get a short paragraph, not fake confidence.
Bottom line: in a cloud, use that cloud's managed K8s. On-prem production, especially airgapped, RKE2. Edge, K3s. CI, kind. Learning, minikube. OpenShift when compliance and a vendor contract matter more than cost. kubeadm only when you really need full control and have the people for it.
What a distribution actually decides for you
"Vanilla Kubernetes" is not a thing you install. Even the official docs immediately send you to kubeadm or a cloud provider, because Kubernetes is deliberately incomplete. Every cluster still needs:
- A container runtime: containerd or CRI-O. (Docker as a runtime is gone since dockershim was removed in 1.24.)
- A CNI plugin: Flannel, Canal, Calico, Cilium...
- Storage: what happens when a pod asks for a disk?
- Ingress, certificates, and an upgrade story.
A distribution is an opinionated bundle of those choices. The one question that never makes it into comparison tables, and matters most: how do upgrades work, and who does them? Managed clouds do it for you (sometimes when you didn't want them to). RKE2 and K3s give you a binary swap plus a system-upgrade-controller. kubeadm gives you a runbook and your weekend.
In a cloud: use the managed one and stop there
If you're on GCP, use GKE. On Azure, use AKS. On AWS, use EKS. I would never choose a cloud for its Kubernetes, and I'd never run self-managed Kubernetes on cloud VMs without a very specific reason. Running your own etcd next to a managed service that does it for $0.10/hour is a bad trade.
The things that actually differ, and bite:
GKE. Autopilot (Google runs the nodes, you pay per pod request) or Standard (you run node pools). The cluster fee is $0.10/hour, and the free tier credit covers one zonal or Autopilot cluster per billing account. GKE upgrades your control plane and nodes on its release channel schedule, so set a maintenance window and, around big launches, a maintenance exclusion. Otherwise Google picks the time.
gcloud container clusters create prod \
--region europe-west1 \
--release-channel regular \
--machine-type e2-standard-4 \
--num-nodes 1 # per zone, so 3 nodes in a regional cluster
# Or let Google run the nodes
gcloud container clusters create-auto prod-auto --region europe-west1AKS. The "free control plane" is the Free tier, which has no financially backed uptime SLA. For anything production, use the Standard tier ($0.10/hour per cluster). The real reasons to be happy on AKS are Entra ID integration and Windows node pools. AKS supports only a small window of minor versions, so falling a few releases behind pushes you out of support quickly. Plan upgrades as routine work, not a yearly project.
az aks create \
--resource-group my-rg \
--name prod \
--tier standard \
--node-count 3 \
--enable-addons monitoring \
--generate-ssh-keys
az aks get-credentials --resource-group my-rg --name prodEKS. $0.10/hour per cluster on standard support. The trap: when your Kubernetes version leaves standard support, the cluster moves to extended support at $0.60/hour. Skipping upgrades makes the control plane six times more expensive. Auto Mode exists now if you want AWS to manage nodes too, similar idea to Autopilot.
eksctl create cluster \
--name prod \
--region us-west-2 \
--nodegroup-name standard-workers \
--node-type t3.medium \
--nodes 3
aws eks update-kubeconfig --region us-west-2 --name prodOn-prem production: RKE2 by default
If I have to run Kubernetes on my own metal, RKE2 is my default. One binary per node, embedded etcd, containerd, Canal as the default CNI, a CIS hardening profile (profile: cis in the config), and FIPS-validated builds if government customers are involved. And most importantly, airgapped install is a first-class, documented path, not an afterthought.
The airgapped install itself is boring, which is what you want:
# Artifacts (rke2 tarball, images tarball, sha256sum file, install.sh) copied in from outside
mkdir -p /var/lib/rancher/rke2/agent/images/
cp rke2-images.linux-amd64.tar.zst /var/lib/rancher/rke2/agent/images/
INSTALL_RKE2_ARTIFACT_PATH=/root/rke2-artifacts sh install.sh
systemctl enable --now rke2-serverThen point containerd at your internal registry:
# /etc/rancher/rke2/registries.yaml
mirrors:
docker.io:
endpoint:
- "https://harbor.internal.example"
quay.io:
endpoint:
- "https://harbor.internal.example"
configs:
"harbor.internal.example":
tls:
ca_file: /etc/rancher/rke2/harbor-ca.crtWhat nobody tells you about airgapped: getting the cluster up is the easy part. Every Helm chart you install afterwards needs all of its images in that registry too, including the ones it only pulls on upgrade or from a sidecar. Each upstream registry (docker.io, quay.io, registry.k8s.io, ghcr.io) needs its own mirror entry, or that pull fails silently until a pod reschedules. Budget most of your airgap effort for image logistics, not for Kubernetes.
If you're still on RKE (v1): it reached end of life in July 2025. The migration target is RKE2.
Rancher (the management UI, not the distribution) is worth it when you have many clusters and many teams. For one or two clusters it's one more thing to upgrade.
kubeadm. The official tool, pure upstream, and you own everything: etcd backups, certificate rotation, CNI, upgrades node by node. Great for learning how Kubernetes works inside. For production, only with a team that wants to own all of that.
sudo kubeadm init --pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
# 10.244.0.0/16 is Flannel's default
kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
# On each worker, with the command kubeadm init printed
sudo kubeadm join <control-plane-ip>:6443 --token <token> \
--discovery-token-ca-cert-hash sha256:<hash>Kubespray is Ansible driving the same kind of cluster. If your team already lives in Ansible, it's a reasonable way to make kubeadm-style clusters repeatable. If not, you're learning two things at once.
OpenShift is Kubernetes plus a lot of opinions: strict security defaults (pods don't run as root unless you allow it), a developer console, OpenShift Pipelines (Tekton), and Red Hat support. You pay for it in licensing and in "this Helm chart assumes root" fixes. Pick it when regulated customers or management want a vendor contract. OKD is the community version, ROSA and ARO are the managed ones on AWS and Azure.
Tanzu only makes sense if you're already deep in VMware. Since the Broadcom acquisition it's bundled into VMware Cloud Foundation and priced like it, so it's not something to pick fresh.
MicroK8s: small clusters, if you can live with snap
MicroK8s is Canonical's distribution, shipped as a snap. Installing a node and adding features is genuinely quick, and three nodes give you HA (dqlite) automatically.
# Pin a version channel, don't track "latest"
sudo snap install microk8s --classic --channel=1.33/stable
# Snap auto-refreshes by default. Hold it so upgrades happen when you decide
sudo snap refresh --hold microk8s
microk8s enable dns hostpath-storage
microk8s add-node # prints the join command for the next node
microk8s kubectl get nodesTwo things to know before you run it for real. Snap refreshes are upgrades, and an upgrade restarting your cluster at a random time is not a feature, so hold or schedule them. And hostpath-storage is node-local disk: fine for dev, not for data you care about. If your hosts aren't Ubuntu, or your security team blocks snap, skip it.
Edge: K3s
Remember when "Kubernetes on a Raspberry Pi" sounded like a joke? K3s made it real. It's a single small binary, one curl command, and it's the most "it just works" Kubernetes I've used:
curl -sfL https://get.k3s.io | sh -
# Wait ~30 seconds
sudo k3s kubectl get nodesThe typical K3s shape is a fleet of small sites (shops, factories, branch offices) where the "server" is a mini PC and each site runs its own cluster because the link back to HQ can't be trusted. A single K3s server uses SQLite instead of etcd, so there's no distributed database to babysit (for HA you start the first server with --cluster-init and get embedded etcd). Traefik ingress and metrics-server are bundled, so you can run something useful without a platform team at every location.
When to skip it: as your main cloud production cluster. K3s is CNCF-conformant, so this is rarely an API problem. It's that the managed service next to it already does upgrades, HA, and integrations you'd be rebuilding by hand. K3s drops the in-tree cloud-provider and storage plugins to stay small, which is exactly what you don't need at the edge and exactly what you'd miss in a cloud. For enterprise support contracts, SUSE sells support for K3s, but banks and hospitals will usually be more comfortable with OpenShift or a cloud.
k0s (Mirantis) sits in the same niche: single binary, minimal dependencies. I haven't run it in anger, so no opinion beyond "it exists and it's a fair alternative".
Local and CI
- kind for CI. Clusters are Docker containers, they start fast, and they're built for throwaway. Multi-node is one config file:
cat <<EOF | kind create cluster --name ci --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
EOF
kind delete cluster --name ci- minikube for learning. Most tutorials assume it, and
minikube addons enable ingressgets you further than you'd expect. - Docker Desktop if you already have it. It's a checkbox, and newer versions can create multi-node clusters using kind under the hood.
None of these are production, and none of them should be your "shared dev cluster" either.
How I'd choose
Start with managed, unless you can't. The time you don't spend on control planes, etcd, and certificate rotation goes into the actual product. Yes, the control plane costs about $73/month per cluster, but compare that to the salary of whoever manages self-built Kubernetes. The exceptions: you need on-prem or airgapped, regulation keeps you out of the cloud, or you're at a scale where the math really favors self-managed. And if on-prem is even a possibility, ask before you build, not after.
Learn on minikube, not on a shared cluster. Too many people learn Kubernetes on the shared "dev" cluster. Break things on your laptop, where mistakes are free. Once pods, services, deployments, and ingress make sense, then think about production.
Match the distribution to your constraints, not your wishes. Want new Kubernetes versions early? GKE's Rapid channel. Already all-in on VMware? Tanzu, and only then. Security and compliance breathing down your neck? OpenShift or RKE2. Three-person startup? Managed K8s, or no Kubernetes at all.
The decision tree I actually use
- Learning? → minikube (or kind)
- Edge or IoT? → K3s
- In AWS/GCP/Azure and allowed to use their services? → EKS/GKE/AKS
- On-prem or airgapped? → RKE2
- FedRAMP/FIPS/government compliance? → RKE2, or OpenShift if they want Red Hat on the contract
- 10+ clusters across environments? → Rancher on top of whatever fits each environment
- Very specific requirements and a team who can own it? → kubeadm
- Everything else? → Start managed, reassess in 6 months
The distribution matters less than you think and more than you hope. The expensive mistake isn't the "suboptimal" distribution, it's three months of architecture meetings trying to predict the future.
TL;DR: Managed K8s in the cloud, RKE2 on-prem, K3s at the edge, minikube or kind on your laptop. Ignore anyone who says you should "start simple" with kubeadm, that's the opposite of simple. Decide, ship, and adjust when you hit real limits, not imagined ones.
A note on how this was written: I used AI to help with phrasing and structure. The tone, the opinions, the war stories, the code, and everything else here are mine.