Add ipv6 support to the e2e healthz test

The test [k8s.io] Probing container [It] should not be restarted with a
/healthz http liveness probe [NodeConformance] [Conformance]
fails because it's using a nginx image that's spawns a server that's
only listening on IPv4 by default.

Switching to an image like TestWebserver that's listening in IPv4 and IPv6 by default
allows the test to run on IPv4 and IPv6 environments.

Reference: https://github.com/kubernetes/kubernetes/issues/70248
This commit is contained in:
Antonio Ojea 2019-03-10 16:47:53 +01:00
parent 0b4275b6c7
commit d5d57baa36
No known key found for this signature in database
GPG Key ID: E4833AA228D4E824

View File

@ -252,7 +252,7 @@ var _ = framework.KubeDescribe("Probing container", func() {
Containers: []v1.Container{
{
Name: "liveness",
Image: imageutils.GetE2EImage(imageutils.Nginx),
Image: imageutils.GetE2EImage(imageutils.TestWebserver),
Ports: []v1.ContainerPort{{ContainerPort: 80}},
LivenessProbe: &v1.Probe{
Handler: v1.Handler{