Platform Engineering
I came across Puppet's 2020 State of DevOps report and noticed how closely it mapped to questions I ask candidates. I've been helping with hiring lately.
We ask a deliberately broad question. The wording varies, but it usually comes down to this:
How would you build a highly available Kubernetes cluster on bare metal or in a public cloud, with enough capacity for heavy workloads and room to scale across development teams? Walk us through your reasoning and what you'd do in practice, starting from the very first step.
We want to deliver a platform at the push of a button. That takes IaC and a few other pieces. I'd break the work into three steps that fit together well enough to make deployment a roughly one-button operation:
-
compute bootstrappingprovisions the physical servers or VMs, networks, and other resources that will host the OS and Kubernetes. In most cases I'd use Terraform with the AWS, GCP, VMware, or OpenStack provider. -
provisioningconfigures the OS and installs a highly available Kubernetes cluster on that compute using configuration management. Managed Kubernetes in a public cloud can handle this step for you. -
cluster configurationadds the pieces a bare cluster needs to be useful, including public ingress, metrics and logs, and secret storage and delivery. There are two ways to install those components:CiOpsstores the infrastructure application definitions in Git. A pipeline runner with cluster access applies the manifests or installs the charts. Kubernetes is declarative, but the operation itself is imperative and may fail to be idempotent.GitOpsadds a controller that compares the running cluster with the manifests or Helm charts in Git. It reports configuration drift and can correct it automatically when self-healing is enabled.
Deployment on AWS with GitOps
Terraform provisions the AWS infrastructure and creates an Amazon EKS cluster. EKS supplies the managed Kubernetes control plane, so there is no separate step to install it. Once the cluster is up, bootstrap Argo CD inside it. Argo CD pulls the desired state from Git and syncs platform components into Kubernetes; Git doesn't push changes to the cluster.
Takeaway: At the time, this looked like the most promising way to build Kubernetes infrastructure and worth exploring in more depth.
Links
- An example platform repository on GitHub.
- I'd recently heard doubts about using tools like Kubespray or kubeadm for this. I'd like to provision the cluster itself declaratively as well. Rancher and Cluster API look worth exploring.



