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
description: "Some optional configuration for bash auto-completion on macOS."
10
9
headless: true
11
-
---
12
10
-->
13
11
14
12
<!--
@@ -154,20 +152,23 @@ You now have to ensure that the kubectl completion script gets sourced in all yo
154
152
```
155
153
156
154
<!--
157
-
- If you installed kubectl with Homebrew (as explained [above](#install-with-homebrew-on-macos)), then the kubectl completion script should already be in `/usr/local/etc/bash_completion.d/kubectl`. In that case, you don't need to do anything.
155
+
- If you installed kubectl with Homebrew (as explained [here](/docs/tasks/tools/install-kubectl-macos/#install-with-homebrew-on-macos)), then the kubectl completion script should already be in `/usr/local/etc/bash_completion.d/kubectl`. In that case, you don't need to do anything.
The Homebrew installation of bash-completion v2 sources all the files in the `BASH_COMPLETION_COMPAT_DIR` directory, that's why the latter two methods work.
The Homebrew installation of bash-completion v2 sources all the files in the `BASH_COMPLETION_COMPAT_DIR` directory, that's why the latter two methods work.
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/tools/install-kubectl-linux.md
+85-44Lines changed: 85 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ card:
8
8
title: 在 Linux 系统中安装 kubectl
9
9
---
10
10
<!--
11
-
---
12
11
reviewers:
13
12
- mikedanese
14
13
title: Install and Set Up kubectl on Linux
@@ -18,18 +17,17 @@ card:
18
17
name: tasks
19
18
weight: 20
20
19
title: Install kubectl on Linux
21
-
---
22
20
-->
23
21
24
22
## {{% heading "prerequisites" %}}
25
23
26
24
<!--
27
-
You must use a kubectl version that is within one minor version difference of your cluster.
28
-
For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master.
25
+
You must use a kubectl version that is within one minor version difference of your cluster. For example, a v{{< skew latestVersion >}} client can communicate with v{{< skew prevMinorVersion >}}, v{{< skew latestVersion >}}, and v{{< skew nextMinorVersion >}} control planes.
29
26
Using the latest version of kubectl helps avoid unforeseen issues.
If you are on Ubuntu or another Linux distribution that support [snap](https://snapcraft.io/docs/core/install) package manager, kubectl is available as a [snap](https://snapcraft.io/) application.
201
234
-->
202
-
如果你使用的 Ubuntu 或其他 Linux 发行版,内建支持 [snap](https://snapcraft.io/docs/core/install) 包管理工具,
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install).
215
249
-->
216
-
如果你使用 Linux 系统,并且装了 [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) 包管理工具,
250
+
如果你使用 Linux 系统,并且装了 [Homebrew](https://docs.brew.sh/Homebrew-on-Linux)
0 commit comments