Skip to content

Commit 8da1919

Browse files
authored
Merge pull request #21935 from Yiyiyimu/patch-1
[zh] Fix typo in install-kubectl
2 parents 7313e21 + cff8efa commit 8da1919

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/zh/docs/tasks/tools/install-kubectl.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ If you are on Ubuntu or one of other Linux distributions that support [snap](htt
104104
2. Test to ensure the version you installed is sufficiently up-to-date:
105105
106106
```
107-
kubectl version
107+
kubectl version --client
108108
```
109109
-->
110110
## 在 Ubuntu 上使用 snap 安装 kubectl
@@ -120,7 +120,7 @@ If you are on Ubuntu or one of other Linux distributions that support [snap](htt
120120
2. 测试以确保您安装的版本是最新的:
121121
122122
```
123-
kubectl version
123+
kubectl version --client
124124
```
125125
126126
<!--
@@ -137,7 +137,7 @@ If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you
137137
2. Test to ensure the version you installed is sufficiently up-to-date:
138138
139139
```
140-
kubectl version
140+
kubectl version --client
141141
```
142142
-->
143143
## <span id = "jump"> 在 macOS 上用 Homebrew 安装 kubectl </span>
@@ -153,7 +153,7 @@ If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you
153153
2. 测试以确保您安装的版本是最新的:
154154
155155
```
156-
kubectl version
156+
kubectl version --client
157157
```
158158
159159
@@ -171,7 +171,7 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
171171
2. Test to ensure the version you installed is sufficiently up-to-date:
172172
173173
```
174-
kubectl version
174+
kubectl version --client
175175
```
176176
-->
177177
@@ -188,7 +188,7 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
188188
2. 测试以确保您安装的版本是最新的:
189189
190190
```
191-
kubectl version
191+
kubectl version --client
192192
```
193193
194194
<!--
@@ -212,7 +212,7 @@ If you are on Windows and using [Powershell Gallery](https://www.powershellgalle
212212
2. Test to ensure the version you installed is sufficiently up-to-date:
213213
214214
```
215-
kubectl version
215+
kubectl version --client
216216
```
217217
218218
{{< note >}}
@@ -238,7 +238,7 @@ If you are on Windows and using [Powershell Gallery](https://www.powershellgalle
238238
239239
2. 测试以确保您安装的版本是最新的:
240240
```
241-
kubectl version
241+
kubectl version --client
242242
```
243243
244244
{{< note >}}
@@ -259,7 +259,7 @@ If you are on Windows and using [Chocolatey](https://chocolatey.org) package man
259259
2. Test to ensure the version you installed is sufficiently up-to-date:
260260
261261
```
262-
kubectl version
262+
kubectl version --client
263263
```
264264
3. Change to your %HOME% directory:
265265
@@ -300,7 +300,7 @@ If you are on Windows and using [Chocolatey](https://chocolatey.org) package man
300300
2. 测试以确保您安装的版本是最新的:
301301
302302
```
303-
kubectl version
303+
kubectl version --client
304304
```
305305
3. 切换到 %HOME% 目录:
306306
@@ -343,7 +343,7 @@ You can install kubectl as part of the Google Cloud SDK.
343343
3. Test to ensure the version you installed is sufficiently up-to-date:
344344
345345
```
346-
kubectl version
346+
kubectl version --client
347347
```
348348
-->
349349
## 将 kubectl 作为 Google Cloud SDK 的一部分下载
@@ -360,7 +360,7 @@ kubectl 可以作为 Google Cloud SDK 的一部分进行安装。
360360
3. 测试以确保您安装的版本是最新的:
361361
362362
```
363-
kubectl version
363+
kubectl version --client
364364
```
365365
366366
<!--

0 commit comments

Comments
 (0)