# Ruby (Rails) ## Startup delay Rails startup (bundle exec, asset precompilation, initializer chain) typically takes 30–90 seconds. Extend the liveness probe delay to avoid restart loops: ```yaml livenessProbe: tcpSocket: port: 3000 initialDelaySeconds: 90 periodSeconds: 30 failureThreshold: 6 readinessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 60 periodSeconds: 15 failureThreshold: 3 ``` ## Sidekiq workers Sidekiq is a full Ruby process, not a thread pool. Deploy it as a separate Deployment from the web process with 256–512Mi memory. It does not need an HTTP liveness probe — omit it or use a simple `exec` check. ## Non-interactive rails console / rake tasks ```bash kubectl exec -n -- bundle exec rake db:migrate kubectl exec -n -- bundle exec rails runner "User.create!(...)" ```