Skip to content

Commit 39fd63b

Browse files
authored
Merge pull request #31989 from guettli/31930__fix_busybox_image_1.28
fix busybox image to version 1.28
2 parents 6894174 + 7122a44 commit 39fd63b

30 files changed

+49
-49
lines changed

content/en/docs/concepts/scheduling-eviction/pod-overhead.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
runtimeClassName: kata-fc
7373
containers:
7474
- name: busybox-ctr
75-
image: busybox
75+
image: busybox:1.28
7676
stdin: true
7777
tty: true
7878
resources:

content/en/docs/concepts/storage/ephemeral-volumes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ metadata:
107107
spec:
108108
containers:
109109
- name: my-frontend
110-
image: busybox
110+
image: busybox:1.28
111111
volumeMounts:
112112
- mountPath: "/data"
113113
name: my-csi-inline-vol
@@ -158,7 +158,7 @@ metadata:
158158
spec:
159159
containers:
160160
- name: my-frontend
161-
image: busybox
161+
image: busybox:1.28
162162
volumeMounts:
163163
- mountPath: "/scratch"
164164
name: scratch-volume

content/en/docs/concepts/storage/volumes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ metadata:
251251
spec:
252252
containers:
253253
- name: test
254-
image: busybox
254+
image: busybox:1.28
255255
volumeMounts:
256256
- name: config-vol
257257
mountPath: /etc/config
@@ -1128,7 +1128,7 @@ spec:
11281128
fieldRef:
11291129
apiVersion: v1
11301130
fieldPath: metadata.name
1131-
image: busybox
1131+
image: busybox:1.28
11321132
command: [ "sh", "-c", "while [ true ]; do echo 'Hello'; sleep 10; done | tee -a /logs/hello.txt" ]
11331133
volumeMounts:
11341134
- name: workdir1

content/en/docs/concepts/workloads/pods/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ spec:
180180
spec:
181181
containers:
182182
- name: hello
183-
image: busybox
183+
image: busybox:1.28
184184
command: ['sh', '-c', 'echo "Hello, Kubernetes!" && sleep 3600']
185185
restartPolicy: OnFailure
186186
# The pod template ends here

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ kubectl apply -f https://git.io/vPieo # create resource(s) from url
102102
kubectl create deployment nginx --image=nginx # start a single instance of nginx
103103

104104
# create a Job which prints "Hello World"
105-
kubectl create job hello --image=busybox -- echo "Hello World"
105+
kubectl create job hello --image=busybox:1.28 -- echo "Hello World"
106106

107107
# create a CronJob that prints "Hello World" every minute
108-
kubectl create cronjob hello --image=busybox --schedule="*/1 * * * *" -- echo "Hello World"
108+
kubectl create cronjob hello --image=busybox:1.28 --schedule="*/1 * * * *" -- echo "Hello World"
109109

110110
kubectl explain pods # get the documentation for pod manifests
111111

@@ -118,7 +118,7 @@ metadata:
118118
spec:
119119
containers:
120120
- name: busybox
121-
image: busybox
121+
image: busybox:1.28
122122
args:
123123
- sleep
124124
- "1000000"
@@ -130,7 +130,7 @@ metadata:
130130
spec:
131131
containers:
132132
- name: busybox
133-
image: busybox
133+
image: busybox:1.28
134134
args:
135135
- sleep
136136
- "1000"
@@ -320,7 +320,7 @@ kubectl logs my-pod -c my-container --previous # dump pod container logs (s
320320
kubectl logs -f my-pod # stream pod logs (stdout)
321321
kubectl logs -f my-pod -c my-container # stream pod container logs (stdout, multi-container case)
322322
kubectl logs -f -l name=myLabel --all-containers # stream all pods logs with label name=myLabel (stdout)
323-
kubectl run -i --tty busybox --image=busybox -- sh # Run pod as interactive shell
323+
kubectl run -i --tty busybox --image=busybox:1.28 -- sh # Run pod as interactive shell
324324
kubectl run nginx --image=nginx -n mynamespace # Start a single instance of nginx pod in the namespace of mynamespace
325325
kubectl run nginx --image=nginx # Run pod nginx and write its spec into a file called pod.yaml
326326
--dry-run=client -o yaml > pod.yaml

content/en/docs/tasks/administer-cluster/declare-network-policy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pod/nginx-701339712-e0qfq 1/1 Running 0 35s
6868
You should be able to access the new `nginx` service from other Pods. To access the `nginx` Service from another Pod in the `default` namespace, start a busybox container:
6969

7070
```console
71-
kubectl run busybox --rm -ti --image=busybox -- /bin/sh
71+
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
7272
```
7373

7474
In your shell, run the following command:
@@ -111,7 +111,7 @@ networkpolicy.networking.k8s.io/access-nginx created
111111
When you attempt to access the `nginx` Service from a Pod without the correct labels, the request times out:
112112

113113
```console
114-
kubectl run busybox --rm -ti --image=busybox -- /bin/sh
114+
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
115115
```
116116

117117
In your shell, run the command:
@@ -130,7 +130,7 @@ wget: download timed out
130130
You can create a Pod with the correct labels to see that the request is allowed:
131131

132132
```console
133-
kubectl run busybox --rm -ti --labels="access=true" --image=busybox -- /bin/sh
133+
kubectl run busybox --rm -ti --labels="access=true" --image=busybox:1.28 -- /bin/sh
134134
```
135135

136136
In your shell, run the command:

content/en/docs/tasks/debug-application-cluster/debug-running-pod.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
110110
to the console of the Ephemeral Container.
111111

112112
```shell
113-
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
113+
kubectl debug -it ephemeral-demo --image=busybox:1.28 --target=ephemeral-demo
114114
```
115115

116116
```
@@ -182,7 +182,7 @@ but you need debugging utilities not included in `busybox`. You can simulate
182182
this scenario using `kubectl run`:
183183

184184
```shell
185-
kubectl run myapp --image=busybox --restart=Never -- sleep 1d
185+
kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
186186
```
187187

188188
Run this command to create a copy of `myapp` named `myapp-debug` that adds a
@@ -225,7 +225,7 @@ To simulate a crashing application, use `kubectl run` to create a container
225225
that immediately exits:
226226

227227
```
228-
kubectl run --image=busybox myapp -- false
228+
kubectl run --image=busybox:1.28 myapp -- false
229229
```
230230

231231
You can see using `kubectl describe pod myapp` that this container is crashing:
@@ -283,7 +283,7 @@ additional utilities.
283283
As an example, create a Pod using `kubectl run`:
284284

285285
```
286-
kubectl run myapp --image=busybox --restart=Never -- sleep 1d
286+
kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
287287
```
288288

289289
Now use `kubectl debug` to make a copy and change its container image

content/en/docs/tasks/job/parallel-processing-expansion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ spec:
201201
spec:
202202
containers:
203203
- name: c
204-
image: busybox
204+
image: busybox:1.28
205205
command: ["sh", "-c", "echo Processing URL {{ url }} && sleep 5"]
206206
restartPolicy: Never
207207
{% endfor %}

content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ runs in an infinite loop, sending queries to the php-apache service.
152152
```shell
153153
# Run this in a separate terminal
154154
# so that the load generation continues and you can carry on with the rest of the steps
155-
kubectl run -i --tty load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
155+
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
156156
```
157157

158158
Now run:

content/en/docs/tutorials/security/apparmor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ metadata:
264264
spec:
265265
containers:
266266
- name: hello
267-
image: busybox
267+
image: busybox:1.28
268268
command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]
269269
EOF
270270
pod/hello-apparmor-2 created

0 commit comments

Comments
 (0)