Get the latest tech news

Zero-Downtime Kubernetes Deployments on AWS with EKS


Zero-downtime deployments on Kubernetes on AWS EKS utilizing Pod Readiness Gates, graceful application shutdown and termination delays with code examples in Go

From the above, it follows that the AWS Load Balancer Controller simply adds missing IP addresses to the target group and removes superfluous ones, but unfortunately, both of those actions take some time which can lead to downtime in subtle ways. The reason for this is obvious in hindsight, and attentive readers of this blog post might already have figured it out: The AWS Load Balancer keeps sending new requests to the target for several seconds after the application is sent the termination signal! You can either stick with the preStop lifecycle hook idea and implement something like a sleep sub-command or HTTP endpoint, or (my preferred solution) allow your application to wait for some time before shutting down the server.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of AWS

AWS

Photo of eks

eks

Related news:

News photo

Microsoft: So what if it costs 4X as much to run Windows Server in AWS, Alibaba, and Google?

News photo

Nigerians are building affordable alternatives to AWS and Google Cloud

News photo

ST Micro skips in, arm in arm with AWS, bearing a chip for 1.6 Tbps pluggable optics