mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-12 05:08:50 +00:00
Handle TERM signal to reduce pod terminating time.
This commit is contained in:
@@ -3472,7 +3472,7 @@ func newExecPodSpec(ns, generateName string) *v1.Pod {
|
||||
{
|
||||
Name: "exec",
|
||||
Image: BusyBoxImage,
|
||||
Command: []string{"sh", "-c", "while true; do sleep 5; done"},
|
||||
Command: []string{"sh", "-c", "trap exit TERM; while true; do sleep 5; done"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user