mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #42959 from smarterclayton/test_clean
Automatic merge from submit-queue (batch tested with PRs 42998, 42902, 42959, 43020, 42948) Delete host exec pods rapidly
This commit is contained in:
commit
d7332315b0
@ -3849,6 +3849,7 @@ func IssueSSHCommand(cmd, provider string, node *v1.Node) error {
|
|||||||
|
|
||||||
// NewHostExecPodSpec returns the pod spec of hostexec pod
|
// NewHostExecPodSpec returns the pod spec of hostexec pod
|
||||||
func NewHostExecPodSpec(ns, name string) *v1.Pod {
|
func NewHostExecPodSpec(ns, name string) *v1.Pod {
|
||||||
|
immediate := int64(0)
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: name,
|
Name: name,
|
||||||
@ -3862,8 +3863,9 @@ func NewHostExecPodSpec(ns, name string) *v1.Pod {
|
|||||||
ImagePullPolicy: v1.PullIfNotPresent,
|
ImagePullPolicy: v1.PullIfNotPresent,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
HostNetwork: true,
|
HostNetwork: true,
|
||||||
SecurityContext: &v1.PodSecurityContext{},
|
SecurityContext: &v1.PodSecurityContext{},
|
||||||
|
TerminationGracePeriodSeconds: &immediate,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return pod
|
return pod
|
||||||
|
Loading…
Reference in New Issue
Block a user