The Engineering Way runs apps on a cluster someone else built. This series builds the cluster. You start with the hard way: three EC2 instances, every certificate and config file by hand. Then you see what the tools do for you.
Before you start
Everything is on these pages. Each part has the full, commented scripts for its step. Copy them into one folder, ~/k8s-hard-way, and run them in order.
It costs about $0.08 an hour while it runs: three t3.small instances, disks and public IPs. One script deletes everything and proves it.
No inbound ports. The security group has no rule from the internet. You reach the machines, and the API server, through AWS Session Manager.
You need an AWS account, the AWS CLI, jq, openssl, kubectl and the Session Manager plugin.
What you build
VPC 10.240.0.0/24, no inbound from the internet
server 10.240.0.10
etcd
API server
controller manager
scheduler
node-0 Pods 10.200.0.0/24
containerd, kubelet, kube-proxy
node-1 Pods 10.200.1.0/24
containerd, kubelet, kube-proxy
The hard way
Six parts, in order. Each one: the commands, what they do, how to check, and the idea behind them.
Network and machinesVPC, security group, IAM role and three instances. No way in from the internet.
The scripts and text on these pages are written independently, not copied. What differs: no jumpbox, access only through SSM, Amazon Linux, a DNS step, Kubernetes 1.37, and a teardown that proves nothing is left.
The text and scripts in this series are shared under CC BY-NC-SA 4.0: credit the author, no commercial use, and share adaptations the same way.
Then
A cluster with kubeadmSoonThe same cluster in a few commands, and what kubeadm does for you.
Cluster APISoonCreate and upgrade clusters by writing YAML.
A highly available control planeSoonThree control plane nodes and a real etcd cluster.