A One-Line Kubernetes Fix Saves 600 Hours a Year
4 similar posts
- Atlantis
- Kubernetes
- Terraform
- GitLab
- Ceph
- Kibana
AI Summary
Cloudflare engineers investigated why restarting Atlantis on Kubernetes took 30 minutes due to massive persistent volume file counts. By discovering that kubelet recursively updated file permissions on every mount, they applied a single fsGroupChangePolicy configuration change, reducing restart times to 30 seconds and reclaiming 600 engineering hours annually.
Key Takeaways
- Atlantis restart times dropped from 30 minutes to 30 seconds.
- The issue stemmed from Kubernetes performing recursive group ownership updates on large PersistentVolumes.
- Setting fsGroupChangePolicy to OnRootMismatch resolved the bottleneck.
Why it matters
Large persistent volumes in Kubernetes can cause hidden boot bottlenecks due to recursive permission changes. Understanding and tuning securityContext policies like fsGroupChangePolicy prevents severe scalability issues in production systems.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.