# PHP (Laravel / Symfony) ## Startup delay Laravel's startup sequence (autoload optimization, key generation, migrations, package discovery) commonly takes 2–3 minutes on cluster restart or first boot. The default `initialDelaySeconds: 60` is too short — the liveness probe fires before the app is ready, kills the container, and a restart loop begins. **Symptom**: pod shows `Running` for ~2 minutes, then gets `Killing` due to liveness probe failure, then a new pod starts the same cycle. Use a `tcpSocket` liveness probe (avoids the Host header issue) with an extended initial delay: ```yaml livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 120 periodSeconds: 30 failureThreshold: 6 readinessProbe: httpGet: path: / port: 8080 initialDelaySeconds: 60 periodSeconds: 15 failureThreshold: 3 ``` Symfony has the same behavior. Adjust `initialDelaySeconds` up if migrations are slow. ## Resources 256–512Mi request is typical for a PHP-FPM or Artisan-served app. Workers (queue:work, horizon) are separate processes — give them their own Deployment and 256–512Mi each.