mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
parent
5bd928fed0
commit
54a8a66329
@ -51,9 +51,9 @@ var _ = Describe("Networking", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should provide Internet connection for containers", func() {
|
It("should provide Internet connection for containers", func() {
|
||||||
By("Running container which pings google.com")
|
By("Running container which tries to wget google.com")
|
||||||
podName := "ping-test"
|
podName := "wget-test"
|
||||||
contName := "ping-test-container"
|
contName := "wget-test-container"
|
||||||
pod := &api.Pod{
|
pod := &api.Pod{
|
||||||
TypeMeta: api.TypeMeta{
|
TypeMeta: api.TypeMeta{
|
||||||
Kind: "Pod",
|
Kind: "Pod",
|
||||||
@ -66,7 +66,7 @@ var _ = Describe("Networking", func() {
|
|||||||
{
|
{
|
||||||
Name: contName,
|
Name: contName,
|
||||||
Image: "gcr.io/google_containers/busybox",
|
Image: "gcr.io/google_containers/busybox",
|
||||||
Command: []string{"ping", "-c", "3", "-w", "10", "google.com"},
|
Command: []string{"wget", "-s", "google.com"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
RestartPolicy: api.RestartPolicyNever,
|
RestartPolicy: api.RestartPolicyNever,
|
||||||
|
Loading…
Reference in New Issue
Block a user