You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/tools/install-kubectl.md
+31-14Lines changed: 31 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,16 +21,24 @@ card:
21
21
22
22
<!-- overview -->
23
23
<!--
24
-
Use the Kubernetes command-line tool, [kubectl](/docs/user-guide/kubectl/), to deploy and manage applications on Kubernetes. Using kubectl, you can inspect cluster resources; create, delete, and update components; look at your new cluster; and bring up example apps.
24
+
The Kubernetes command-line tool, [kubectl](/docs/reference/kubectl/kubectl/), allows
25
+
you to run commands against Kubernetes clusters.
26
+
You can use kubectl to deploy applications, inspect and manage cluster resources,
27
+
and view logs. For a complete list of kubectl operations, see
28
+
[Overview of kubectl](/docs/reference/kubectl/overview/).
You must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master. Using the latest version of kubectl helps avoid unforeseen issues.
39
+
You must use a kubectl version that is within one minor version difference of your cluster.
40
+
For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master.
41
+
Using the latest version of kubectl helps avoid unforeseen issues.
34
42
-->
35
43
你必须使用与集群小版本号差别为一的 kubectl 版本。
36
44
例如,1.2 版本的客户端应该与 1.1 版本、1.2 版本和 1.3 版本的主节点一起使用。
@@ -104,7 +112,7 @@ You must use a kubectl version that is within one minor version difference of yo
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
110
118
sudo apt-get update
@@ -306,7 +314,7 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
306
314
<!--
307
315
2. Add the binary in to your PATH.
308
316
-->
309
-
2.将二进制文件放到 PATH 目录下。
317
+
2.将可执行文件放到 PATH 目录下。
310
318
311
319
<!--
312
320
3. Test to ensure the version of `kubectl` is the same as downloaded:
@@ -483,15 +491,22 @@ kubectl 可以作为 Google Cloud SDK 的一部分进行安装。
483
491
<!--
484
492
## Verifying kubectl configuration
485
493
486
-
In order for kubectl to find and access a Kubernetes cluster, it needs a [kubeconfig file](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/), which is created automatically when you create a cluster using kube-up.sh or successfully deploy a Minikube cluster. See the [getting started guides](/docs/setup/) for more about creating clusters. If you need access to a cluster you didn't create, see the [Sharing Cluster Access document](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/).
494
+
In order for kubectl to find and access a Kubernetes cluster, it needs a
* See the [getting started guides](/docs/setup/) for more about creating clusters.
879
894
* [Learn how to launch and expose your application.](/docs/tasks/access-application-cluster/service-access-application-cluster/)
880
-
* If you need access to a cluster you didn't create, see the [Sharing Cluster Access document](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/).
895
+
* If you need access to a cluster you didn't create, see the
0 commit comments