Open utterances-bot opened 1 year ago
I have tried your plan and it is not feasible. The sending of SIGTERM semaphores and the call to prestop are carried out simultaneously. That will cause the services in the pod to end after receiving the semaphore, but the API Gateway has not been updated to the latest list, unless the refresh interval is particularly small. Do you mistakenly believe that SIGTERM will only be sent after Prestop execution is completed?
Smooth upgrade of Spring Cloud services in K8S - Spring Cloud
Learn how to implement smooth upgrade of Spring Cloud services in K8S.
https://www.springcloud.io/post/2022-08/k8s-springcloud-smooth-upgrade/