Skip to content

Commit 1677dac

Browse files
authored
Merge pull request #50457 from Eason1118/patch-1
[zh-cn] Sync declare-network-policy.md
2 parents 9f61511 + 8f6f150 commit 1677dac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

112112
```shell
113-
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
113+
kubectl run busybox --rm -ti --image=busybox -- /bin/sh
114114
```
115115

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

184184
```shell
185-
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
185+
kubectl run busybox --rm -ti --image=busybox -- /bin/sh
186186
```
187187

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

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

0 commit comments

Comments
 (0)