Skip to content

Commit c230941

Browse files
committed
sync configure-service-account automated-tasks-with-cron-jobs install-kubectl-windows
u
1 parent 13007cb commit c230941

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

content/zh-cn/docs/tasks/configure-pod-container/configure-service-account.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ in use.
104104
当 Pod 被身份认证为某个 ServiceAccount 时,
105105
其访问能力取决于所使用的[鉴权插件和策略](/zh-cn/docs/reference/access-authn-authz/authorization/#authorization-modules)
106106

107+
<!--
108+
The API credentials are automatically revoked when the Pod is deleted, even if
109+
finalizers are in place. In particular, the API credentials are revoked 60 seconds
110+
beyond the `.metadata.deletionTimestamp` set on the Pod (the deletion timestamp
111+
is typically the time that the **delete** request was accepted plus the Pod's
112+
termination grace period).
113+
-->
114+
当 Pod 被删除时,即使设置了终结器,API 凭据也会自动失效。
115+
需要额外注意的是,API 凭据会在 Pod 上设置的 `.metadata.deletionTimestamp` 之后的 60 秒内失效
116+
(删除时间戳通常是 **delete** 请求被接受的时间加上 Pod 的终止宽限期)。
117+
107118
<!--
108119
### Opt out of API credential automounting
109120

content/zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ hello */1 * * * * False 0 <none> 10s
7878
```
7979
<!--
8080
As you can see from the results of the command, the cron job has not scheduled or run any jobs yet.
81-
Watch for the job to be created in around one minute:
81+
{{< glossary_tooltip text="Watch" term_id="watch" >}} for the job to be created in around one minute:
8282
-->
83-
就像你从命令返回结果看到的那样,CronJob 还没有调度或执行任何任务。大约需要一分钟任务才能创建好。
83+
就像你从命令返回结果看到的那样,CronJob 还没有调度或执行任何任务。
84+
等待大约一分钟,以{{< glossary_tooltip text="观察" term_id="watch" >}}作业的创建进程:
8485

8586
```shell
8687
kubectl get jobs --watch

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

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,39 @@ The following methods exist for installing kubectl on Windows:
3535
在 Windows 系统中安装 kubectl 有如下几种方法:
3636

3737
<!--
38-
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
38+
- [Install kubectl binary on Windows (via direct download or curl)](#install-kubectl-binary-on-windows-via-direct-download-or-curl)
3939
- [Install on Windows using Chocolatey, Scoop, or winget](#install-nonstandard-package-tools)
4040
-->
41-
- [用 curl 在 Windows 上安装 kubectl](#install-kubectl-binary-with-curl-on-windows)
41+
- [在 Windows 上安装 kubectl(通过直接下载或使用 curl)](#install-kubectl-binary-on-windows-via-direct-download-or-curl)
4242
- [在 Windows 上用 Chocolatey、Scoop 或 winget 安装](#install-nonstandard-package-tools)
4343

4444
<!--
45-
### Install kubectl binary with curl on Windows
45+
### Install kubectl binary on Windows (via direct download or curl)
4646
-->
47-
### 用 curl 在 Windows 上安装 kubectl {#install-kubectl-binary-with-curl-on-windows}
47+
### 在 Windows 上安装 kubectl(通过直接下载或使用 curl) {#install-kubectl-binary-on-windows-via-direct-download-or-curl}
4848

4949
<!--
50-
1. Download the latest {{< skew currentVersion >}} patch release:
51-
[kubectl {{< skew currentPatchVersion >}}](https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/windows/amd64/kubectl.exe).
50+
1. You have two options for installing kubectl on your Windows device
51+
52+
- Direct download:
53+
54+
Download the latest {{< skew currentVersion >}} patch release binary directly for your specific architecture by visiting the [Kubernetes release page](https://kubernetes.io/releases/download/#binaries). Be sure to select the correct binary for your architecture (e.g., amd64, arm64, etc.).
55+
56+
- Using curl:
57+
58+
If you have `curl` installed, use this command:
5259
-->
53-
1. 下载最新补丁版 {{< skew currentVersion >}}:
54-
[kubectl {{< skew currentPatchVersion >}}](https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/windows/amd64/kubectl.exe)。
60+
1. 你有两种方式可以在 Windows 设备上安装 kubectl
5561

56-
<!--
57-
Or if you have `curl` installed, use this command:
58-
-->
59-
如果你已安装了 `curl`,也可以使用此命令:
62+
直接下载:
63+
64+
通过访问 [Kubernetes 发布页面](https://kubernetes.io/releases/download/#binaries)
65+
直接下载特定于你的体系结构的二进制文件的最新 {{< skew currentVersion >}} 补丁版本。
66+
请务必选择适用于你的体系结构的二进制文件(例如,amd64、arm64 等)。
67+
68+
使用 curl:
69+
70+
如果你已安装 `curl`,可以使用以下命令:
6071

6172
```powershell
6273
curl.exe -LO "https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/windows/amd64/kubectl.exe"

0 commit comments

Comments
 (0)