I have an API written in Go that has been Dockerised and runs in a Kubernetes cluster on GKE.
At the moment my API server does not handle any shutdown scenarios such as a Pod dying or being purposefully brought down.
What set of UNIX signals should I expect to trap to gracefully shutdown the server and what circumstances would trigger them? For example, crashes, K8s shutdowns etc.