Skip to content

Commit 55c8c13

Browse files
committed
[zh] Add text to: access-authn-authz/node.md
1 parent c328a3a commit 55c8c13

File tree

1 file changed

+25
-2
lines changed
  • content/zh-cn/docs/reference/access-authn-authz

1 file changed

+25
-2
lines changed

content/zh-cn/docs/reference/access-authn-authz/node.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,32 @@ kubelet 如何确定主机名的详细信息,请参阅
136136
[kubelet 选项参考](/zh-cn/docs/reference/command-line-tools-reference/kubelet/)
137137

138138
<!--
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:
140141
-->
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+
```
142165

143166
<!--
144167
To limit the API objects kubelets are able to write, enable the

0 commit comments

Comments
 (0)