Skip to content

Commit 3a1ecd2

Browse files
committed
[zh] Update declare-network-policy.md
Signed-off-by: xin.li <[email protected]>
1 parent f490abd commit 3a1ecd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ You should be able to access the new `nginx` service from other Pods. To access
108108
要从 default 命名空间中的其它s Pod 来访问该服务。可以启动一个 busybox 容器:
109109

110110
```shell
111-
kubectl run busybox --rm -ti --image=busybox /bin/sh
111+
kubectl run busybox --rm -ti --image=busybox:1.28 /bin/sh
112112
```
113113

114114
<!--
@@ -180,7 +180,7 @@ When you attempt to access the `nginx` Service from a Pod without the correct la
180180
如果你尝试从没有设定正确标签的 Pod 中去访问 `nginx` 服务,请求将会超时:
181181

182182
```shell
183-
kubectl run busybox --rm -ti --image=busybox -- /bin/sh
183+
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
184184
```
185185

186186
<!--
@@ -207,7 +207,7 @@ You can create a Pod with the correct labels to see that the request is allowed:
207207
创建一个拥有正确标签的 Pod,你将看到请求是被允许的:
208208

209209
```shell
210-
kubectl run busybox --rm -ti --labels="access=true" --image=busybox -- /bin/sh
210+
kubectl run busybox --rm -ti --labels="access=true" --image=busybox:1.28 -- /bin/sh
211211
```
212212
<!--
213213
In your shell, run the command:

0 commit comments

Comments
 (0)