Writing Your Own Kubernetes Operator - A Practical Guide

Posted on Sun 22 March 2026 in DevOps • Tagged with Kubernetes, Golang, DevOps

Kubernetes is great at managing stateless workloads out of the box. You define a Deployment, it creates Pods, handles rolling updates, and restarts them if they crash. But what about stateful applications like databases? What if you want Kubernetes to understand how to create a PostgreSQL replica, take a backup …


Continue reading

Terraform State Locking, Stuck Locks, and Force Unlock

Posted on Sat 21 March 2026 in Terraform • Tagged with Terraform, Infrastructure as a Code, DevOps

If you've worked with Terraform in a team, you've almost certainly run into this error at some point:

Error: Error acquiring the state lock

Lock Info:
  ID:        a1b2c3d4-e5f6-7890-abcd-ef1234567890
  Path:      s3://my-terraform-state/prod/terraform.tfstate
  Operation: OperationTypeApply
  Who:       sanyam@sanyam-macbook
  Version:   1.7.0 …

Continue reading