|
// specify gracePeriod 0, this was the default in previous version of the fabric8 k8s client |
Is it possible to make the grace period for deleting a pod configurable? As this currently stands, a pod is sent a kill -s SIGKILL immediately after a user presses the stop app button. Ideally, this would be customisable so that a container can instead get a kill -s SIGTERM and trap that to perform resource cleanup. The example I've hit is running rstudio server in ShinyProxy needs time to send a SIGUSR1 to gracefully clean up a running rsession. As things stand, if you have persistent storage under the rstudio user home directory, on restarting the app, a user is presented with an error message stating the previous session was abnormally terminated due to an unexpected crash.
containerproxy/src/main/java/eu/openanalytics/containerproxy/backend/kubernetes/KubernetesBackend.java
Line 729 in b3bdf4e
Is it possible to make the grace period for deleting a pod configurable? As this currently stands, a pod is sent a kill -s SIGKILL immediately after a user presses the stop app button. Ideally, this would be customisable so that a container can instead get a kill -s SIGTERM and trap that to perform resource cleanup. The example I've hit is running rstudio server in ShinyProxy needs time to send a SIGUSR1 to gracefully clean up a running rsession. As things stand, if you have persistent storage under the rstudio user home directory, on restarting the app, a user is presented with an error message stating the previous session was abnormally terminated due to an unexpected crash.