translation for kubectl install section
This commit is contained in:
@@ -42,7 +42,6 @@ The following methods exist for installing kubectl on Windows:
|
||||
|
||||
- [用 curl 在 Windows 上安装 kubectl](#install-kubectl-binary-with-curl-on-windows)
|
||||
- [在 Windows 上用 Chocolatey 或 Scoop 安装](#install-on-windows-using-chocolatey-or-scoop)
|
||||
- [作为谷歌云 SDK 的一部分,在 Windows 上安装](#install-on-windows-as-part-of-the-google-cloud-sdk)
|
||||
|
||||
<!--
|
||||
### Install kubectl binary with curl on Windows
|
||||
@@ -210,13 +209,6 @@ Edit the config file with a text editor of your choice, such as Notepad.
|
||||
编辑配置文件,你需要先选择一个文本编辑器,比如 Notepad。
|
||||
{{< /note >}}
|
||||
|
||||
<!--
|
||||
### Install on Windows as part of the Google Cloud SDK
|
||||
-->
|
||||
### 作为谷歌云 SDK 的一部分,在 Windows 上安装 {#install-on-windows-as-part-of-the-google-cloud-sdk}
|
||||
|
||||
{{< include "included/install-kubectl-gcloud.md" >}}
|
||||
|
||||
<!--
|
||||
## Verify kubectl configuration
|
||||
-->
|
||||
@@ -225,11 +217,11 @@ Edit the config file with a text editor of your choice, such as Notepad.
|
||||
{{< include "included/verify-kubectl.md" >}}
|
||||
|
||||
<!--
|
||||
## Optional kubectl configurations
|
||||
## Optional kubectl configurations and plugins
|
||||
|
||||
### Enable shell autocompletion
|
||||
-->
|
||||
## kubectl 可选配置 {#optional-kubectl-configurations}
|
||||
## kubectl 可选配置和插件 {#optional-kubectl-configurations}
|
||||
|
||||
### 启用 shell 自动补全功能 {#enable-shell-autocompletion}
|
||||
|
||||
@@ -244,7 +236,76 @@ kubectl 为 Bash 和 Zsh 提供自动补全功能,可以减轻许多输入的
|
||||
|
||||
{{< include "included/optional-kubectl-configs-zsh.md" >}}
|
||||
|
||||
<!--
|
||||
### Install `kubectl convert` plugin
|
||||
-->
|
||||
### 安装 `kubectl convert` 插件
|
||||
|
||||
{{< include "included/kubectl-convert-overview.md" >}}
|
||||
|
||||
<!--
|
||||
1. Download the latest release with the command:
|
||||
-->
|
||||
1. 用以下命令下载最新发行版:
|
||||
|
||||
```powershell
|
||||
curl -LO https://dl.k8s.io/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe
|
||||
```
|
||||
|
||||
<!--
|
||||
1. Validate the binary (optional)
|
||||
|
||||
Download the kubectl-convert checksum file:
|
||||
-->
|
||||
1. 验证该可执行文件(可选步骤)
|
||||
|
||||
下载 kubectl-convert 校验和文件:
|
||||
|
||||
```powershell
|
||||
curl -LO https://dl.k8s.io/{{< param "fullversion" >}}/bin/windows/amd64/kubectl-convert.exe.sha256
|
||||
```
|
||||
|
||||
<!--
|
||||
Validate the kubectl-convert binary against the checksum file:
|
||||
|
||||
- Using Command Prompt to manually compare `CertUtil`'s output to the checksum file downloaded:
|
||||
-->
|
||||
基于校验和,验证 kubectl-convert 的可执行文件:
|
||||
|
||||
- 用提示的命令对 `CertUtil` 的输出和下载的校验和文件进行手动比较。
|
||||
|
||||
```cmd
|
||||
CertUtil -hashfile kubectl-convert.exe SHA256
|
||||
type kubectl-convert.exe.sha256
|
||||
```
|
||||
|
||||
<!--
|
||||
- Using PowerShell to automate the verification using the `-eq` operator to get a `True` or `False` result:
|
||||
-->
|
||||
- 使用 PowerShell `-eq` 操作使验证自动化,获得 `True` 或者 `False` 的结果:
|
||||
|
||||
```powershell
|
||||
$($(CertUtil -hashfile .\kubectl-convert.exe SHA256)[1] -replace " ", "") -eq $(type .\kubectl-convert.exe.sha256)
|
||||
```
|
||||
|
||||
<!--
|
||||
1. Add the binary in to your `PATH`.
|
||||
|
||||
1. Verify plugin is successfully installed
|
||||
-->
|
||||
1. 将可执行文件添加到你的 `PATH` 环境变量。
|
||||
|
||||
1. 验证插件是否安装成功
|
||||
|
||||
```shell
|
||||
kubectl convert --help
|
||||
```
|
||||
|
||||
<!--
|
||||
If you do not see an error, it means the plugin is successfully installed.
|
||||
-->
|
||||
如果你没有看到任何错误就代表插件安装成功了。
|
||||
|
||||
## {{% heading "whatsnext" %}}
|
||||
|
||||
{{< include "included/kubectl-whats-next.md" >}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user