talira

The easiest way to get a production grade Kubernetes cluster up and running

open sourceApache-2.0self-hostablefree

kOps (Kubernetes Operations) is a command-line tool that creates, upgrades and deletes highly available Kubernetes clusters and provisions the cloud infrastructure they run on; its makers call it kubectl for clusters. You describe a cluster and its instance groups in YAML manifests kept in a state store (an S3 bucket on AWS), and kops update cluster builds or changes the infrastructure to match, with dry runs by default, or writes Terraform configuration for you to apply instead. kops rolling-update replaces nodes one instance group at a time, draining each and validating the cluster before moving on. AWS and Google Cloud are officially supported, DigitalOcean, Hetzner and OpenStack are in beta and Azure is alpha. It's a Kubernetes SIG Cluster Lifecycle subproject under Apache-2.0.

Ways to install

Problems it solves

  • create a production-grade, highly available cluster on AWS with one command, including the VPC, instances and DNS
  • spin up a self-managed Kubernetes cluster on EC2 instead of paying for a managed control plane
  • upgrade the Kubernetes version on my self-managed cloud cluster without taking workloads down
  • replace every node in my cluster one at a time, draining each, after changing the machine image or instance type
  • keep my whole cluster definition, node groups included, in version-controlled YAML
  • preview exactly what will change in my cloud account before I apply a cluster change
  • generate Terraform code for the cloud resources behind a Kubernetes cluster so it fits our existing Terraform workflow
  • run a self-managed cluster on Google Cloud, DigitalOcean, Hetzner or OpenStack with the same tool I use on AWS
  • tear down a test cluster and every cloud resource it created in one step
  • add a node pool of ARM64 or spot instances to a cluster I run myself on AWS
  • set up IAM roles for service accounts on a self-managed cluster in AWS
  • pick Cilium, Calico or another network plugin when I create a cluster in the cloud

Features

  • creates, upgrades, deletes and maintains highly available clusters and provisions their cloud infrastructure
  • AWS and Google Cloud officially supported; DigitalOcean, Hetzner and OpenStack beta; Azure and Spot Ocean alpha
  • state-sync model with dry runs and automatic idempotency
  • cluster and instance groups described in YAML manifests kept in a state store (an S3 bucket on AWS)
  • can write Terraform configuration instead of changing infrastructure directly
  • rolling updates by instance group with cordon, drain, validation and optional surge (maxSurge, maxUnavailable)
  • zero-config managed add-ons
  • CNI choices: Cilium (default since 1.26), Calico, Flannel, Kube-router, Kindnet and AWS VPC
  • cluster templating and dry-run modes for creating manifests
  • ARM64 support
View 4 more
  • hooks, containers and files added to nodes through the cluster manifest
  • public, private and DNS-less (no Route53) cluster setups on AWS
  • each kOps release supports its matching Kubernetes minor version and the two before it
  • binaries for macOS, Linux and Windows; Homebrew install

Limitations

  • Doesn't fully support Azure, DigitalOcean, Hetzner or OpenStack: only AWS and Google Cloud are officially supported; DigitalOcean, Hetzner and OpenStack are beta and Azure is alpha34
  • Doesn't support a new Kubernetes minor version on its release day: each kOps release typically comes about a month after the Kubernetes release it matches5

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what kOps does.

  1. Amazon EKS Managed Kubernetes on AWS
  2. Kubespray Deploy a Production Ready Kubernetes Cluster
  3. kubeadm Best-practice fast paths for creating Kubernetes clusters with kubeadm init and kubeadm join
  4. hetzner-k3s The easiest and fastest way to create production-ready Kubernetes clusters on Hetzner Cloud
  5. kube-hetzner Optimized and maintenance-free Kubernetes on Hetzner Cloud in one command
  6. Cluster API Declarative APIs and tooling to simplify provisioning, upgrading and operating multiple Kubernetes clusters

Compare kOps with the top 3