Operating Rails in Kubernetes
summary
Shopify migrates hundreds of Rails apps, including a large monolith, to Kubernetes and reports concrete practices: migrated hundreds of Rails apps using YAML resource specs (~20–30 lines), a PR-generating bot, and a visibility tool released as the Kubernetes deploy gem. Rails 5.2 credentials plus Kubernetes secrets store keys, migrations run asynchronously via a recurring job applies migrations every 5–10 minutes, and stateful services (Redis/MySQL) remain problematic during pod reschedules.
AI-written summary · about
chapters (14)
- 0:00Start
- 4:19Smart container scheduling for better utilization
- 6:46Managing Resources
- 9:29Controlling servers vs describing configuration
- 11:41The Twelve-Factor app
- 13:14Background Jobs
- 13:30Long-running jobs
- 14:26Abort and re-enqueue
- 17:00Migrations as a part of deploy
- 18:39Asynchronous Migrations
- 19:33Secret Management
- 20:01Secrets in a container
- 20:19Rails 5.2 Credentials
- 22:24Resource specs in YAML
related talks
44mMigrating a Monolith to Kubernetes
46mKeep Building Fresh: Shopify's Journey to Kubernetes
19mBuilding an On-Premise Kubernetes...
27mRails Orbiting the cloud: Mastering the scalability with Kubernetes
33mUpgrading a big application to Rails 5
28mSimplifying at Scale: 7 Years of Rails Architecture
40mHow Shopify Scales Rails
30mKuby: Active Deployment for Rails Apps
