Skip to content

Commit

Permalink
Merge pull request #44775 from asa3311/sync-zh-95
Browse files Browse the repository at this point in the history
[zh] sync configure-service-account horizontal-pod-autoscale-walkthrough install-kubectl-macos
  • Loading branch information
k8s-ci-robot committed Jan 20, 2024
2 parents 833bd95 + 602a2e0 commit 2df0642
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ token might be shorter, or could even be longer).

<!--
When the `ServiceAccountTokenNodeBinding` and `ServiceAccountTokenNodeBindingValidation`
features are enabled and the `KUBECTL_NODE_BOUND_TOKENS` enviroment variable is set to `true`,
features are enabled and the `KUBECTL_NODE_BOUND_TOKENS` environment variable is set to `true`,
it is possible to create a service account token that is directly bound to a `Node`:
-->
当启用了 `ServiceAccountTokenNodeBinding``ServiceAccountTokenNodeBindingValidation`
Expand All @@ -315,7 +315,7 @@ KUBECTL_NODE_BOUND_TOKENS=true kubectl create token build-robot --bound-object-k
```

<!--
The token will be valid until it expires or either the assocaited `Node` or service account are deleted.
The token will be valid until it expires or either the associated `Node` or service account are deleted.
-->
此令牌将有效直至其过期或关联的 `Node` 或服务账户被删除。

Expand Down Expand Up @@ -476,7 +476,7 @@ Next, verify it has been created. For example:
所描述的,生成一个镜像拉取 Secret:

```shell
kubectl create secret docker-registry myregistrykey --docker-server=DUMMY_SERVER \
kubectl create secret docker-registry myregistrykey --docker-server=<registry name> \
--docker-username=DUMMY_USERNAME --docker-password=DUMMY_DOCKER_PASSWORD \
--docker-email=DUMMY_DOCKER_EMAIL
```
Expand Down Expand Up @@ -578,7 +578,7 @@ ServiceAccount, the new Pod has its `spec.imagePullSecrets` field set automatica
新 Pod 的 `spec.imagePullSecrets` 会被自动设置。

```shell
kubectl run nginx --image=nginx --restart=Never
kubectl run nginx --image=<registry name>/nginx --restart=Never
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ Kubernetes Metrics Server 从集群中的 {{<glossary_tooltip term_id="kubelet"
要了解如何部署 Metrics Server,请参阅
[metrics-server 文档](https://github.com/kubernetes-sigs/metrics-server#deployment)

<!--
If you are running {{< glossary_tooltip term_id="minikube" >}}, run the following command to enable metrics-server:
-->
如果你正在运行 {{< glossary_tooltip term_id="minikube" >}},运行以下命令以启用 metrics-server:

```shell
minikube addons enable metrics-server
```

<!-- steps -->

<!--
Expand Down
6 changes: 3 additions & 3 deletions content/zh-cn/docs/tasks/tools/install-kubectl-macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ The following methods exist for installing kubectl on macOS:
```

<!--
1. After installing the plugin, clean up the installation files:
1. After installing and validating kubectl, delete the checksum file:
-->
1. 安装插件后,清理安装文件
1. 安装并验证 kubectl 后,删除校验和文件

```bash
rm kubectl kubectl.sha256
rm kubectl.sha256
```
<!--
### Install with Homebrew on macOS
Expand Down

0 comments on commit 2df0642

Please sign in to comment.