Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsongjc committed Aug 13, 2019
1 parent 0d2c0c2 commit 3e9991c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guide/tls-bootstrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ Token 可以是任意的,但应该可以表示为从安全随机数生成器
Token 文件应该类似于以下示例,其中前三个值可以是任何值,引用的组名称应如下所示:

```bash
02b50b05283e98dd0fd71db496ef01e8,kubelet-bootstrap,10001,"system:kubelet-bootstrap"
02b50b05283e98dd0fd71db496ef01e8,kubelet-bootstrap,10001,system:kubelet-bootstrap
```

注意:`system:kubelet-bootstrap` 的配置,当只有一个组时,不需要加引号。

在 kube-apiserver 命令中添加 `--token-auth-file=FILENAME` 标志(可能在您的 systemd unit 文件中)来启用 token 文件。

查看 [该文档](https://kubernetes.io/docs/admin/authentication/#static-token-file) 获取更多详细信息。
Expand Down

0 comments on commit 3e9991c

Please sign in to comment.