-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redis Sentinel - handle SIGTERM in
kubectl-shared
container
When Redis Sentinel has the master service option enabled, the `kubectl-shared` container runs a script with an infinite `while+sleep` loop. This script does not handle SIGTERM and causes the pod to hang upon termination until the termination grace period elapses. This change introduces a `preStop` hack to create a `terminate` file, which is used as a singal to the script that it should exit the infinite loop Signed-off-by: Kevin Pullin <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters