Skip to content

Commit 7544765

Browse files
authored
Merge pull request #39044 from Zhuzhenghao/declear-network-policy
[zh-cn] Update declare-network-policy.md
2 parents 1c816b6 + 7a9e3af commit 7544765

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 声明网络策略
33
min-kubernetes-server-version: v1.8
44
content_type: task
5+
weight: 180
56
---
67
<!--
78
reviewers:
@@ -10,6 +11,7 @@ reviewers:
1011
title: Declare Network Policy
1112
min-kubernetes-server-version: v1.8
1213
content_type: task
14+
weight: 180
1315
-->
1416

1517
<!-- overview -->
@@ -90,11 +92,11 @@ kubectl get svc,pod
9092
```
9193
```none
9294
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
93-
svc/kubernetes 10.100.0.1 <none> 443/TCP 46m
94-
svc/nginx 10.100.0.16 <none> 80/TCP 33s
95+
service/kubernetes 10.100.0.1 <none> 443/TCP 46m
96+
service/nginx 10.100.0.16 <none> 80/TCP 33s
9597
9698
NAME READY STATUS RESTARTS AGE
97-
po/nginx-701339712-e0qfq 1/1 Running 0 35s
99+
pod/nginx-701339712-e0qfq 1/1 Running 0 35s
98100
```
99101

100102
<!--
@@ -108,7 +110,7 @@ You should be able to access the new `nginx` service from other Pods. To access
108110
要从 default 命名空间中的其它 Pod 来访问该服务。可以启动一个 busybox 容器:
109111

110112
```shell
111-
kubectl run busybox --rm -ti --image=busybox:1.28 /bin/sh
113+
kubectl run busybox --rm -ti --image=busybox:1.28 -- /bin/sh
112114
```
113115

114116
<!--

0 commit comments

Comments
 (0)