File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
content/zh-cn/docs/reference/access-authn-authz Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,32 @@ kubelet 如何确定主机名的详细信息,请参阅
136
136
[ kubelet 选项参考] ( /zh-cn/docs/reference/command-line-tools-reference/kubelet/ ) 。
137
137
138
138
<!--
139
- To enable the Node authorizer, start the apiserver with `--authorization-mode=Node`.
139
+ To enable the Node authorizer, start the {{< glossary_tooltip text="API server" term_id="kube-apiserver" >}}
140
+ with the `--authorization-config` flag set to a file that includes the `Node` authorizer; for example:
140
141
-->
141
- 要启用节点鉴权器,请使用 ` --authorization-mode=Node ` 启动 API 服务器。
142
+ 要启用 Node 鉴权器,启动 {{< glossary_tooltip text="API 服务器" term_id="kube-apiserver" >}}时将
143
+ ` --authorization-config ` 参数设置为包含 ` Node ` 鉴权器的某个文件;例如:
144
+
145
+ ``` yaml
146
+ apiVersion : apiserver.config.k8s.io/v1
147
+ kind : AuthorizationConfiguration
148
+ authorizers :
149
+ ...
150
+ - type : Node
151
+ ...
152
+ ```
153
+
154
+ <!--
155
+ Or, start the {{< glossary_tooltip text="API server" term_id="kube-apiserver" >}} with
156
+ the `--authorization-mode` flag set to a comma-separated list that includes `Node`;
157
+ for example:
158
+ -->
159
+ 或者,在启动 {{< glossary_tooltip text="API 服务器" term_id="kube-apiserver" >}}时将
160
+ ` --authorization-mode ` 参数设置为一个包含 ` Node ` 的逗号分隔的列表;例如:
161
+
162
+ ``` shell
163
+ kube-apiserver --authorization-mode=...,Node --other-options --more-options
164
+ ```
142
165
143
166
<!--
144
167
To limit the API objects kubelets are able to write, enable the
You can’t perform that action at this time.
0 commit comments