From 25a64d1ffac634762772e234c59dc947c99e1c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Moreno?= <52785490+amorenoz@users.noreply.github.com> Date: Wed, 18 Nov 2020 13:40:24 +0100 Subject: [PATCH] entrypoint: use exec to run Device Plugin (#284) On Pod / DaemonSet termination, Kubernetes sends SIGTERM to the first process on each container (pid 1). In order to ensure the SR-IOV Device Plugin daemon receives the signal and it can gracefully clean up, use "exec" in the entrypoint script. Signed-off-by: Adrian Moreno --- images/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/entrypoint.sh b/images/entrypoint.sh index d811c6134..20d2de001 100755 --- a/images/entrypoint.sh +++ b/images/entrypoint.sh @@ -67,4 +67,4 @@ if [ "$CONFIG_FILE" != "" ]; then CLI_PARAMS="$CLI_PARAMS --config-file $CONFIG_FILE" fi -$SRIOV_DP_SYS_BINARY_DIR/sriovdp $CLI_PARAMS +exec $SRIOV_DP_SYS_BINARY_DIR/sriovdp $CLI_PARAMS