Skip to content

Commit

Permalink
entrypoint: use exec to run Device Plugin (#284)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
amorenoz authored Nov 18, 2020
1 parent 12178c8 commit 25a64d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25a64d1

Please sign in to comment.