From 7c987a81b85470c678458fff21b621582441570c Mon Sep 17 00:00:00 2001 From: Dani Comnea Date: Fri, 22 Mar 2019 22:32:10 +0000 Subject: [PATCH] Use busybox image v1.28 for DNS related examples (#13336) --- .../concepts/services-networking/dns-pod-service.md | 6 +++--- .../docs/concepts/workloads/pods/init-containers.md | 12 ++++++------ .../stateful-application/basic-stateful-set.md | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/content/en/docs/concepts/services-networking/dns-pod-service.md b/content/en/docs/concepts/services-networking/dns-pod-service.md index 5c519d479a..d843027dfc 100644 --- a/content/en/docs/concepts/services-networking/dns-pod-service.md +++ b/content/en/docs/concepts/services-networking/dns-pod-service.md @@ -112,7 +112,7 @@ spec: hostname: busybox-1 subdomain: default-subdomain containers: - - image: busybox + - image: busybox:1.28 command: - sleep - "3600" @@ -128,7 +128,7 @@ spec: hostname: busybox-2 subdomain: default-subdomain containers: - - image: busybox + - image: busybox:1.28 command: - sleep - "3600" @@ -192,7 +192,7 @@ metadata: namespace: default spec: containers: - - image: busybox + - image: busybox:1.28 command: - sleep - "3600" diff --git a/content/en/docs/concepts/workloads/pods/init-containers.md b/content/en/docs/concepts/workloads/pods/init-containers.md index d4592138de..70b5a60aa9 100644 --- a/content/en/docs/concepts/workloads/pods/init-containers.md +++ b/content/en/docs/concepts/workloads/pods/init-containers.md @@ -112,19 +112,19 @@ metadata: pod.beta.kubernetes.io/init-containers: '[ { "name": "init-myservice", - "image": "busybox", + "image": "busybox:1.28", "command": ["sh", "-c", "until nslookup myservice; do echo waiting for myservice; sleep 2; done;"] }, { "name": "init-mydb", - "image": "busybox", + "image": "busybox:1.28", "command": ["sh", "-c", "until nslookup mydb; do echo waiting for mydb; sleep 2; done;"] } ]' spec: containers: - name: myapp-container - image: busybox + image: busybox:1.28 command: ['sh', '-c', 'echo The app is running! && sleep 3600'] ``` @@ -140,14 +140,14 @@ metadata: spec: containers: - name: myapp-container - image: busybox + image: busybox:1.28 command: ['sh', '-c', 'echo The app is running! && sleep 3600'] initContainers: - name: init-myservice - image: busybox + image: busybox:1.28 command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;'] - name: init-mydb - image: busybox + image: busybox:1.28 command: ['sh', '-c', 'until nslookup mydb; do echo waiting for mydb; sleep 2; done;'] ``` diff --git a/content/en/docs/tutorials/stateful-application/basic-stateful-set.md b/content/en/docs/tutorials/stateful-application/basic-stateful-set.md index e8a44b5a74..c7ed8641bc 100644 --- a/content/en/docs/tutorials/stateful-application/basic-stateful-set.md +++ b/content/en/docs/tutorials/stateful-application/basic-stateful-set.md @@ -218,7 +218,7 @@ for i in 0 1; do kubectl exec web-$i -- sh -c 'hostname'; done web-0 web-1 -kubectl run -i --tty --image busybox dns-test --restart=Never --rm /bin/sh +kubectl run -i --tty --image busybox:1.28 dns-test --restart=Never --rm /bin/sh nslookup web-0.nginx Server: 10.0.0.10 Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local