diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index db4a1bd1fc6..0529a6d3241 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -3849,6 +3849,7 @@ func IssueSSHCommand(cmd, provider string, node *v1.Node) error { // NewHostExecPodSpec returns the pod spec of hostexec pod func NewHostExecPodSpec(ns, name string) *v1.Pod { + immediate := int64(0) pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: name, @@ -3862,8 +3863,9 @@ func NewHostExecPodSpec(ns, name string) *v1.Pod { ImagePullPolicy: v1.PullIfNotPresent, }, }, - HostNetwork: true, - SecurityContext: &v1.PodSecurityContext{}, + HostNetwork: true, + SecurityContext: &v1.PodSecurityContext{}, + TerminationGracePeriodSeconds: &immediate, }, } return pod