When we investigated why our Atlantis instance took 30 minutes to restart, we discovered a bottleneck in how Kubernetes handles volume permissions. By adjusting the fsGroupChangePolicy, we reduced res
AI Summary
A large Terraform project management tool called Atlantis in Kubernetes was experiencing slow restarts due to a volume ownership update bottleneck. The Kubernetes default setting for updating group ownership on persistent volumes was set to "Always," causing delays as the volume grew to millions of files.Changing the `fsGroupChangePolicy` field in Atlantis's pod specification to `"OnRootMismatch"` greatly improved restart times, allowing for a 30-second restart instead of the previous 30-minute delay.