Merge pull request #32507 from my-git9/translate-compose-kubernetes.md
[zh] Update install-kubectl-macos.md
This commit is contained in:
@@ -178,12 +178,17 @@ The following methods exist for installing kubectl on macOS:
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
1. Test to ensure the version you installed is up-to-date:
|
1. Test to ensure the version you installed is up-to-date:
|
||||||
|
Or use this for detailed view of version:
|
||||||
-->
|
-->
|
||||||
5. 测试一下,确保你安装的是最新的版本:
|
5. 测试一下,确保你安装的是最新的版本:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl version --client
|
kubectl version --client
|
||||||
```
|
```
|
||||||
|
或者使用下面命令来查看版本的详细信息:
|
||||||
|
```cmd
|
||||||
|
kubectl version --client --output=yaml
|
||||||
|
```
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
### Install with Homebrew on macOS {#install-with-homebrew-on-macos}
|
### Install with Homebrew on macOS {#install-with-homebrew-on-macos}
|
||||||
|
|||||||
Reference in New Issue
Block a user