Skip to content

Commit 372280e

Browse files
authored
Merge pull request #34627 from windsonsea/docsite1
[zh-cn] resync policy/example-psp.yaml
2 parents 8a1d089 + 4de73db commit 372280e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

content/zh-cn/examples/policy/example-psp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ kind: PodSecurityPolicy
33
metadata:
44
name: example
55
spec:
6-
privileged: false # Don't allow privileged pods!
7-
# The rest fills in some required fields.
6+
privileged: false # 不允许提权的 Pod!
7+
# 以下内容负责填充一些必需字段。
88
seLinux:
99
rule: RunAsAny
1010
supplementalGroups:

content/zh-cn/examples/service/nginx-service.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ metadata:
44
name: nginx-service
55
spec:
66
ports:
7-
- port: 8000 # the port that this service should serve on
8-
# the container on each pod to connect to, can be a name
9-
# (e.g. 'www') or a number (e.g. 80)
7+
- port: 8000 # 在每个 Pod 的容器上要使用的端口;
8+
# 服务将在此端口上运行,接受连接。
9+
# 端口可以是一个名称(例如:“www”)或一个数字(例如:80)
1010
targetPort: 80
1111
protocol: TCP
12-
# just like the selector in the deployment,
13-
# but this time it identifies the set of pods to load balance
14-
# traffic to.
12+
# 就像 Deployment 中的选择算符,
13+
# 但这里用于识别要对流量进行负载均衡的 Pod 集合。
1514
selector:
1615
app: nginx

0 commit comments

Comments
 (0)