File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ kind: PodSecurityPolicy
3
3
metadata :
4
4
name : example
5
5
spec :
6
- privileged : false # Don't allow privileged pods!
7
- # The rest fills in some required fields.
6
+ privileged : false # 不允许提权的 Pod!
7
+ # 以下内容负责填充一些必需字段。
8
8
seLinux :
9
9
rule : RunAsAny
10
10
supplementalGroups :
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ metadata:
4
4
name : nginx-service
5
5
spec :
6
6
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)
10
10
targetPort : 80
11
11
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 集合。
15
14
selector :
16
15
app : nginx
You can’t perform that action at this time.
0 commit comments