Merge pull request #91962 from aojea/udp1

Deflake Services should be able to preserve UDP traffic when server pod cycles for a NodePort service
This commit is contained in:
Kubernetes Prow Robot
2020-06-16 19:22:53 -07:00
committed by GitHub
4 changed files with 249 additions and 180 deletions

View File

@@ -64,11 +64,13 @@ func DescribeSvc(ns string) {
// newAgnhostPod returns a pod that uses the agnhost image. The image's binary supports various subcommands
// that behave the same, no matter the underlying OS.
func newAgnhostPod(name string, args ...string) *v1.Pod {
zero := int64(0)
return &v1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: name,
},
Spec: v1.PodSpec{
TerminationGracePeriodSeconds: &zero,
Containers: []v1.Container{
{
Name: "agnhost",