Skip to content

Wait for app to exit before letting the cloud proxy terminate (#6)

Latest
Compare
Choose a tag to compare
@peppelan peppelan released this 25 Nov 15:22
943fd08

By this change, we add a preStop command that prevents the cloud_sql_proxy from terminating until the application is running.

This addresses the issue where when a pod stop is requested, the cloud proxy sidecar terminates immediately while the application implementing graceful shutdown takes longer and potentially still accepts requests that then fail because the proxy is down.