Amir Salmaniplatform and reliability engineer

cases / GitOps platform

A GitOps platform, 5 to 8 minutes from merge to live

Amir Salmani,

  • 5 to 8 minutes from merge to live
  • no manual deploys
  • autoscaled in 4 layers

The business

A messaging app with a large audience and sharp peaks. When a campaign runs, traffic arrives all at once, and the owner wants to change things while it’s happening. The budget was small, and nothing could depend on one person typing commands.

The product

  • A merge is a release. 5 to 8 minutes later it’s live.
  • What was tested is exactly what runs.
  • Capacity grows for a peak and shrinks afterwards, without anyone asking.

The tech

Self-managed Kubernetes on k0s, on rented machines.

  • Delivery by Flux. Images are pinned by digest. No manual kubectl, no mutable tags in production. If it isn’t in git, it isn’t deployed.
  • Autoscaling in 4 layers. The web tier and the workers each scale out on load. Pods are resized to what they use. A node autoscaler I wrote with OpenTofu adds and removes machines.
  • PostgreSQL on CloudNativePG, with secrets encrypted in the repository.

the questions this answers

Tell me what you need