28 ms·
Why would I not just do k8s rollout restart deployment? Or just switch my DNS or router between two backends?
by thelastparadise 2y ago
Why would I not just do k8s rollout restart deployment?
Or just switch my DNS or router between two backends?
- jgalt212 2y agoYou still need some warm-up routine to run for the newly online server before the hand-off occurs. I'm not a k8s expert, but the above described events can be easily handled by a bash or fab script.
- ahoka 2y agoWhat events do you mean? If the app needs a warm up, then it can use its readiness probe to ask for some delay until it gets request routed to it.
- jgalt212 2y agoGET requests to pages that fill caches or those that make apache start up more than n processes.
- thelastparadise 2y agoThis is a health/readiness probe in k8s. It's already solved quite solidly.
- joeatwork 2y agoI think this is part of a lighter weight Kubernetes alternative.
- ozgune 2y agoI think the parent project, Kamal, positions itself as a simpler alternative to K8s when deploying web apps. They have a question on this on their website: https://kamal-deploy.org https://kamal-deploy.org "Why not just run Capistrano, Kubernetes or Docker Swarm? ... Docker Swarm is much simpler than Kubernetes, but it’s still built on the same declarative model that uses state reconciliation. Kamal is intentionally designed around imperative commands, like Capistrano. Ultimately, there are a myriad of ways to deploy web apps, but this is the toolkit we’ve used at 37signals to bring HEY and all our other formerly cloud-hosted applications home to our own hardware."