-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZH-trans: add kubeadm_alpha_phase_kubeconfig_kubelet.md #12284
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
155 changes: 155 additions & 0 deletions
155
...ference/setup-tools/kubeadm/generated/kubeadm_alpha_phase_kubeconfig_kubelet.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
生成 kubeconfig 文件供 kubelet 使用。请注意,这应该*只*用于引导目的 | ||
<!-- | ||
Generates a kubeconfig file for the kubelet to use. Please note that this should be used *only* for bootstrapping purposes | ||
--> | ||
|
||
<!-- | ||
### Synopsis | ||
--> | ||
|
||
### 概要 | ||
|
||
<!-- | ||
Generates the kubeconfig file for the kubelet to use and saves it to /etc/kubernetes/kubelet.conf file. | ||
--> | ||
生成要使用的 kubelet 的 kubeconfig 文件,并将其保存到 /etc/kubernetes/kubelet.conf 文件中。 | ||
|
||
<!-- | ||
Please note that this should only be used for bootstrapping purposes. After your control plane is up, you should request all kubelet credentials from the CSR API. | ||
--> | ||
请注意,这只能用于引导。在控制平面启动之后,应该从 CSR API 请求所有 kubelet 证书。 | ||
|
||
<!-- | ||
Alpha Disclaimer: this command is currently alpha. | ||
--> | ||
Alpha 免责声明:此命令目前属于 alpha 阶段。 | ||
|
||
``` | ||
kubeadm alpha phase kubeconfig kubelet [flags] | ||
``` | ||
|
||
<!-- | ||
### Options | ||
--> | ||
|
||
### 选项 | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--apiserver-advertise-address string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">可访问的API 服务器的 IP 地址</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">The IP address the API server is accessible on</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">--apiserver-bind-port int32 默认值: 6443</td> | ||
</tr> | ||
<!-- | ||
<td colspan="2">--apiserver-bind-port int32 Default: 6443</td> | ||
--> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">用来访问 API 服务器的端口</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">The port the API server is accessible on</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">--cert-dir string 默认值: "/etc/kubernetes/pki"</td> | ||
</tr> | ||
<!-- | ||
<td colspan="2">--cert-dir string Default: "/etc/kubernetes/pki"</td> | ||
--> | ||
|
||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">存储证书的路径</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">The path where certificates are stored</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">--config string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubeadm 配置文件的路径。警告:配置文件的使用是实验性的</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">Path to kubeadm config file. WARNING: Usage of a configuration file is experimental</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">-h, --help</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubelet 的帮助信息</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">help for kubelet</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">--kubeconfig-dir string M默认值: "/etc/kubernetes"</td> | ||
</tr> | ||
<!-- | ||
<td colspan="2">--kubeconfig-dir string Default: "/etc/kubernetes"</td> | ||
--> | ||
|
||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">保存 kubeconfig 文件的路径</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save the kubeconfig file</td> | ||
--> | ||
|
||
<tr> | ||
<td colspan="2">--node-name string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">用于 kubelet 客户端证书的节点名</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">The node name that should be used for the kubelet client certificate</td> | ||
--> | ||
|
||
</tbody> | ||
</table> | ||
|
||
<!-- | ||
### Options inherited from parent commands | ||
--> | ||
|
||
### 从父命令继承的选项 | ||
|
||
<table style="width: 100%; table-layout: fixed;"> | ||
<colgroup> | ||
<col span="1" style="width: 10px;" /> | ||
<col span="1" /> | ||
</colgroup> | ||
<tbody> | ||
|
||
<tr> | ||
<td colspan="2">--rootfs string</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">[实验] 到'真实'主机根文件系统的路径。</td> | ||
</tr> | ||
<!-- | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> | ||
--> | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有多余字符
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已完成,是我忽略了。