[zh]Update reference pages(part-4) for links with '/zh/' prefix, using new prefix '/zh-cn/'
parent
e0d6f94bf6
commit
e5913a70a5
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Kubernetes 问题追踪
|
||||
weight: 10
|
||||
aliases: [/zh/cve/, /zh/cves/]
|
||||
aliases: [/zh-cn/cve/, /zh-cn/cves/]
|
||||
---
|
||||
|
||||
<!--
|
||||
|
@ -14,7 +14,7 @@ aliases: [/cve/,/cves/]
|
|||
To report a security issue, please follow the [Kubernetes security disclosure process](/docs/reference/issues-security/security/#report-a-vulnerability).
|
||||
-->
|
||||
要报告安全问题,请遵循
|
||||
[Kubernetes 安全问题公开流程](/zh/docs/reference/issues-security/security/#report-a-vulnerability)。
|
||||
[Kubernetes 安全问题公开流程](/zh-cn/docs/reference/issues-security/security/#report-a-vulnerability)。
|
||||
|
||||
<!--
|
||||
Work on Kubernetes code and public issues are tracked using [GitHub Issues](https://github.com/kubernetes/kubernetes/issues/).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Kubernetes 安全和信息披露
|
||||
aliases: [/zh/security/]
|
||||
aliases: [/zh-cn/security/]
|
||||
content_type: concept
|
||||
weight: 20
|
||||
---
|
||||
|
|
|
@ -35,8 +35,8 @@ files by setting the `KUBECONFIG` environment variable or by setting the
|
|||
-->
|
||||
`针对配置信息,`kubectl` 在 `$HOME/.kube` 目录中查找一个名为 `config` 的配置文件。
|
||||
你可以通过设置 `KUBECONFIG` 环境变量或设置
|
||||
[`--kubeconfig`](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
|
||||
参数来指定其它 [kubeconfig](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/) 文件。
|
||||
[`--kubeconfig`](/zh-cn/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
|
||||
参数来指定其它 [kubeconfig](/zh-cn/docs/concepts/configuration/organize-cluster-access-kubeconfig/) 文件。
|
||||
|
||||
<!--
|
||||
This overview covers `kubectl` syntax, describes the command operations, and provides common examples.
|
||||
|
@ -53,10 +53,10 @@ for a quick guide, see the [cheat sheet](/docs/reference/kubectl/cheatsheet/).
|
|||
If you're used to using the `docker` command-line tool, [`kubectl` for Docker Users](/docs/reference/kubectl/docker-cli-to-kubectl/)
|
||||
explains some equivalent commands for Kubernetes.
|
||||
-->
|
||||
有关安装说明,请参见[安装 kubectl](/zh/docs/tasks/tools/#kubectl);
|
||||
如需快速指南,请参见[备忘单](/zh/docs/reference/kubectl/cheatsheet/)。
|
||||
有关安装说明,请参见[安装 kubectl](/zh-cn/docs/tasks/tools/#kubectl);
|
||||
如需快速指南,请参见[备忘单](/zh-cn/docs/reference/kubectl/cheatsheet/)。
|
||||
如果你更习惯使用 `docker` 命令行工具,
|
||||
[Docker 用户的 `kubectl`](/zh/docs/reference/kubectl/docker-cli-to-kubectl/)
|
||||
[Docker 用户的 `kubectl`](/zh-cn/docs/reference/kubectl/docker-cli-to-kubectl/)
|
||||
介绍了一些 Kubernetes 的等价命令。
|
||||
|
||||
<!-- body -->
|
||||
|
@ -131,7 +131,7 @@ for example `create`, `get`, `describe`, `delete`.
|
|||
|
||||
* 用一个或多个文件指定资源:`-f file1 -f file2 -f file<#>`
|
||||
|
||||
* [使用 YAML 而不是 JSON](/zh/docs/concepts/configuration/overview/#general-configuration-tips),
|
||||
* [使用 YAML 而不是 JSON](/zh-cn/docs/concepts/configuration/overview/#general-configuration-tips),
|
||||
因为 YAML 对用户更友好, 特别是对于配置文件。<br/>
|
||||
例子:`kubectl get -f ./pod.yaml`
|
||||
|
||||
|
@ -341,7 +341,7 @@ Operation | Syntax | Description
|
|||
To learn more about command operations, see the [kubectl](/docs/reference/kubectl/kubectl/) reference documentation.
|
||||
-->
|
||||
了解更多有关命令操作的信息,
|
||||
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
|
||||
<!--
|
||||
## Resource types
|
||||
|
@ -431,7 +431,7 @@ The following table includes a list of all the supported resource types and thei
|
|||
Use the following sections for information about how you can format or sort the output of certain commands. For details about which commands support the various output options, see the [kubectl](/docs/reference/kubectl/kubectl/) reference documentation.
|
||||
-->
|
||||
有关如何格式化或排序某些命令的输出的信息,请参阅以下章节。有关哪些命令支持不同输出选项的详细信息,
|
||||
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
|
||||
<!--
|
||||
### Formatting output
|
||||
|
@ -475,8 +475,8 @@ Output format | Description
|
|||
`-o custom-columns=<spec>` | 使用逗号分隔的[自定义列](#custom-columns)列表打印表。
|
||||
`-o custom-columns-file=<filename>` | 使用 `<filename>` 文件中的[自定义列](#custom-columns)模板打印表。
|
||||
`-o json` | 输出 JSON 格式的 API 对象
|
||||
`-o jsonpath=<template>` | 打印 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式定义的字段
|
||||
`-o jsonpath-file=<filename>` | 打印 `<filename>` 文件中 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式定义的字段。
|
||||
`-o jsonpath=<template>` | 打印 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式定义的字段
|
||||
`-o jsonpath-file=<filename>` | 打印 `<filename>` 文件中 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式定义的字段。
|
||||
`-o name` | 仅打印资源名称而不打印任何其他内容。
|
||||
`-o wide` | 以纯文本格式输出,包含所有附加信息。对于 Pod 包含节点名。
|
||||
`-o yaml` | 输出 YAML 格式的 API 对象。
|
||||
|
@ -500,7 +500,7 @@ Remember: See the [kubectl](/docs/reference/kubectl/kubectl/) reference document
|
|||
for details about which output format is supported by each command.
|
||||
-->
|
||||
请记住:有关每个命令支持哪种输出格式的详细信息,
|
||||
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
|
||||
|
||||
<!--
|
||||
#### Custom columns
|
||||
|
@ -611,7 +611,7 @@ To output objects to a sorted list in your terminal window, you can add the `--s
|
|||
-->
|
||||
要将对象排序后输出到终端窗口,可以将 `--sort-by` 参数添加到支持的 `kubectl` 命令。
|
||||
通过使用 `--sort-by` 参数指定任何数字或字符串字段来对对象进行排序。
|
||||
要指定字段,请使用 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式。
|
||||
要指定字段,请使用 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式。
|
||||
|
||||
<!--
|
||||
#### Syntax
|
||||
|
@ -1077,9 +1077,9 @@ Current user: plugins-user
|
|||
* To find out more about plugins, take a look at the [example CLI plugin](https://github.com/kubernetes/sample-cli-plugin).
|
||||
-->
|
||||
* 阅读 `kubectl` 参考文档:
|
||||
* kubectl [命令参考](/zh/docs/reference/kubectl/kubectl/)
|
||||
* kubectl [命令参考](/zh-cn/docs/reference/kubectl/kubectl/)
|
||||
* 参考[命令行参数](/docs/reference/generated/kubectl/kubectl-commands/)
|
||||
* 学习关于 [`kubectl` 使用约定](/zh/docs/reference/kubectl/conventions/)
|
||||
* 阅读 kubectl 中的 [JSONPath 支持](/zh/docs/reference/kubectl/jsonpath/)
|
||||
* 了解如何[使用插件扩展 kubectl](/zh/docs/tasks/extend-kubectl/kubectl-plugins)
|
||||
* 学习关于 [`kubectl` 使用约定](/zh-cn/docs/reference/kubectl/conventions/)
|
||||
* 阅读 kubectl 中的 [JSONPath 支持](/zh-cn/docs/reference/kubectl/jsonpath/)
|
||||
* 了解如何[使用插件扩展 kubectl](/zh-cn/docs/tasks/extend-kubectl/kubectl-plugins)
|
||||
* 查看更多[示例 cli 插件](https://github.com/kubernetes/sample-cli-plugin)。
|
|
@ -94,7 +94,7 @@ detailed config file information.
|
|||
## Kubectl 上下文和配置
|
||||
|
||||
设置 `kubectl` 与哪个 Kubernetes 集群进行通信并修改配置信息。
|
||||
查看[使用 kubeconfig 跨集群授权访问](/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
|
||||
查看[使用 kubeconfig 跨集群授权访问](/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
|
||||
文档获取配置文件详细信息。
|
||||
|
||||
<!--
|
||||
|
@ -790,7 +790,7 @@ kubectl taint nodes foo dedicated=special-user:NoSchedule
|
|||
<!--
|
||||
List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects):
|
||||
-->
|
||||
列出所支持的全部资源类型和它们的简称、[API 组](/zh/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), 是否是[名字空间作用域](/zh/docs/concepts/overview/working-with-objects/namespaces) 和 [Kind](/zh/docs/concepts/overview/working-with-objects/kubernetes-objects)。
|
||||
列出所支持的全部资源类型和它们的简称、[API 组](/zh-cn/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), 是否是[名字空间作用域](/zh-cn/docs/concepts/overview/working-with-objects/namespaces) 和 [Kind](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects)。
|
||||
|
||||
```bash
|
||||
kubectl api-resources
|
||||
|
@ -846,8 +846,8 @@ Output format | Description
|
|||
`-o=custom-columns=<spec>` | 使用逗号分隔的自定义列来打印表格
|
||||
`-o=custom-columns-file=<filename>` | 使用 `<filename>` 文件中的自定义列模板打印表格
|
||||
`-o=json` | 输出 JSON 格式的 API 对象
|
||||
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式中定义的字段
|
||||
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
|
||||
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式中定义的字段
|
||||
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
|
||||
`-o=name` | 仅打印资源名称而不打印其他内容
|
||||
`-o=wide` | 以纯文本格式输出额外信息,对于 Pod 来说,输出中包含了节点名称
|
||||
`-o=yaml` | 输出 YAML 格式的 API 对象
|
||||
|
@ -887,7 +887,7 @@ kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.
|
|||
kubectl get pods -A -o=custom-columns='DATA:metadata.*'
|
||||
```
|
||||
|
||||
有关更多示例,请参看 kubectl [参考文档](/zh/docs/reference/kubectl/#custom-columns)。
|
||||
有关更多示例,请参看 kubectl [参考文档](/zh-cn/docs/reference/kubectl/#custom-columns)。
|
||||
|
||||
<!--
|
||||
### Kubectl output verbosity and debugging
|
||||
|
@ -939,7 +939,7 @@ Verbosity | Description
|
|||
|
||||
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).
|
||||
-->
|
||||
* 参阅 [kubectl 概述](/zh/docs/reference/kubectl/),进一步了解 [JsonPath](/zh/docs/reference/kubectl/jsonpath)。
|
||||
* 参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 选项。
|
||||
* 参阅 [kubectl 使用约定](/zh/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
|
||||
* 参阅 [kubectl 概述](/zh-cn/docs/reference/kubectl/),进一步了解 [JsonPath](/zh-cn/docs/reference/kubectl/jsonpath)。
|
||||
* 参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 选项。
|
||||
* 参阅 [kubectl 使用约定](/zh-cn/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
|
||||
* 查看社区中其他的 [kubectl 备忘单](https://github.com/dennyzhang/cheatsheet-kubernetes-A4)。
|
||||
|
|
|
@ -76,7 +76,7 @@ For `kubectl run` to satisfy infrastructure as code:
|
|||
-->
|
||||
|
||||
* 使用特定版本的标签标记镜像,不要将该标签改为新版本。例如使用 `:v1234`、`v1.2.3`、`r03062016-1-4`,
|
||||
而不是 `:latest`(有关详细信息,请参阅[配置的最佳实践](/zh/docs/concepts/configuration/overview/#container-images))。
|
||||
而不是 `:latest`(有关详细信息,请参阅[配置的最佳实践](/zh-cn/docs/concepts/configuration/overview/#container-images))。
|
||||
* 使用基于版本控制的脚本来运行包含大量参数的镜像。
|
||||
* 对于无法通过 `kubectl run` 参数来表示的功能特性,使用基于源码控制的配置文件,以记录要使用的功能特性。
|
||||
|
||||
|
|
|
@ -98,10 +98,10 @@ service "nginx-http" exposed
|
|||
<!--
|
||||
By using kubectl, you can create a [Deployment](/docs/concepts/workloads/controllers/deployment/) to ensure that N pods are running nginx, where N is the number of replicas stated in the spec and defaults to 1. You can also create a [service](/docs/concepts/services-networking/service/) with a selector that matches the pod labels. For more information, see [Use a Service to Access an Application in a Cluster](/docs/tasks/access-application-cluster/service-access-application-cluster).
|
||||
-->
|
||||
在 kubectl 命令中,我们创建了一个 [Deployment](/zh/docs/concepts/workloads/controllers/deployment/),
|
||||
在 kubectl 命令中,我们创建了一个 [Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment/),
|
||||
这将保证有 N 个运行 nginx 的 Pod(N 代表 spec 中声明的 replica 数,默认为 1)。
|
||||
我们还创建了一个 [service](/zh/docs/concepts/services-networking/service/),其选择器与容器标签匹配。
|
||||
查看[使用服务访问集群中的应用程序](/zh/docs/tasks/access-application-cluster/service-access-application-cluster) 获取更多信息。
|
||||
我们还创建了一个 [service](/zh-cn/docs/concepts/services-networking/service/),其选择器与容器标签匹配。
|
||||
查看[使用服务访问集群中的应用程序](/zh-cn/docs/tasks/access-application-cluster/service-access-application-cluster) 获取更多信息。
|
||||
|
||||
<!--
|
||||
By default images run in the background, similar to `docker run -d ...`. To run things in the foreground, use [`kubectl run`](/docs/reference/generated/kubectl/kubectl-commands/#run) to create pod:
|
||||
|
@ -280,7 +280,7 @@ kubectl exec -ti nginx-app-5jyvm -- /bin/sh
|
|||
<!--
|
||||
For more information, see [Get a Shell to a Running Container](/docs/tasks/debug/debug-application/get-shell-running-container/).
|
||||
-->
|
||||
更多信息请查看[获取运行中容器的 Shell 环境](/zh/docs/tasks/debug/debug-application/get-shell-running-container/)。
|
||||
更多信息请查看[获取运行中容器的 Shell 环境](/zh-cn/docs/tasks/debug/debug-application/get-shell-running-container/)。
|
||||
|
||||
## docker logs
|
||||
|
||||
|
@ -335,7 +335,7 @@ kubectl logs --previous nginx-app-zibvs
|
|||
<!--
|
||||
For more information, see [Logging Architecture](/docs/concepts/cluster-administration/logging/).
|
||||
-->
|
||||
查看[日志架构](/zh/docs/concepts/cluster-administration/logging/)获取更多信息。
|
||||
查看[日志架构](/zh-cn/docs/concepts/cluster-administration/logging/)获取更多信息。
|
||||
|
||||
## docker stop and docker rm
|
||||
|
||||
|
@ -417,7 +417,7 @@ When you use kubectl, you don't delete the pod directly. You have to first delet
|
|||
There is no direct analog of `docker login` in kubectl. If you are interested in using Kubernetes with a private registry, see [Using a Private Registry](/docs/concepts/containers/images/#using-a-private-registry).
|
||||
-->
|
||||
在 kubectl 中没有对 `docker login` 的直接模拟。如果你有兴趣在私有镜像仓库中使用 Kubernetes,
|
||||
请参阅[使用私有镜像仓库](/zh/docs/concepts/containers/images/#using-a-private-registry)。
|
||||
请参阅[使用私有镜像仓库](/zh-cn/docs/concepts/containers/images/#using-a-private-registry)。
|
||||
|
||||
## docker version
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ kubectl 管理控制 Kubernetes 集群。
|
|||
<!--
|
||||
Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/
|
||||
-->
|
||||
获取更多信息,请访问 [kubectl 概述](/zh/docs/reference/kubectl/overview/)。
|
||||
获取更多信息,请访问 [kubectl 概述](/zh-cn/docs/reference/kubectl/overview/)。
|
||||
|
||||
```
|
||||
kubectl [flags]
|
||||
|
|
|
@ -78,7 +78,7 @@ ServiceAccount 将以下内容绑定在一起:
|
|||
-->
|
||||
imagePullSecrets 是对同一命名空间中 Secret 的引用列表,用于拉取引用此 ServiceAccount 的 Pod 中的任何镜像。
|
||||
imagePullSecrets 与 Secrets 不同,因为 Secrets 可以挂载在 Pod 中,但 imagePullSecrets 只能由 kubelet 访问。
|
||||
更多信息: https://kubernetes.io/zh/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
|
||||
更多信息: https://kubernetes.io/zh-cn/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
|
||||
|
||||
- **secrets** ([]<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>)
|
||||
|
||||
|
@ -130,7 +130,7 @@ ServiceAccountList 是 ServiceAccount 对象的列表
|
|||
<!--
|
||||
List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||
-->
|
||||
ServiceAccount 列表,更多信息: https://kubernetes.io/zh/docs/tasks/configure-pod-container/configure-service-account/
|
||||
ServiceAccount 列表,更多信息: https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/configure-service-account/
|
||||
|
||||
<!--
|
||||
## Operations {#Operations}
|
||||
|
|
|
@ -39,7 +39,7 @@ LocalObjectReference 包含足够的信息,可以让你在同一命名空间
|
|||
- **name** (string)
|
||||
|
||||
被引用者的名称。
|
||||
更多信息: https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/names/#names。
|
||||
更多信息: https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/names/#names。
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ data 字段值的总字节必须小于 MaxSecretSize 字节。
|
|||
|
||||
用于满足程序化方式处理秘密数据。
|
||||
更多信息:
|
||||
https://kubernetes.io/zh/docs/concepts/configuration/secret/#secret-types
|
||||
https://kubernetes.io/zh-cn/docs/concepts/configuration/secret/#secret-types
|
||||
|
||||
## SecretList {#SecretList}
|
||||
|
||||
|
@ -117,7 +117,7 @@ SecretList 是 Secret 的列表。
|
|||
|
||||
items 是 Secret 对象的列表。
|
||||
更多信息:
|
||||
https://kubernetes.io/zh/docs/concepts/configuration/secret
|
||||
https://kubernetes.io/zh-cn/docs/concepts/configuration/secret
|
||||
|
||||
<!--
|
||||
## Operations {#Operations}
|
||||
|
|
|
@ -46,7 +46,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
架构中的组件。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/created-by
|
||||
|
||||
|
@ -65,7 +65,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
创建此资源的控制器/用户。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/instance
|
||||
|
||||
|
@ -84,7 +84,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
标识应用实例的唯一名称。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/managed-by
|
||||
|
||||
|
@ -103,7 +103,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
用于管理应用操作的工具。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/name
|
||||
|
||||
|
@ -123,7 +123,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
应用的名称。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/part-of
|
||||
|
||||
|
@ -142,7 +142,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
此应用所属的更高级别应用的名称。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!-- ### app.kubernetes.io/version
|
||||
|
||||
|
@ -161,7 +161,7 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
|
|||
|
||||
应用的当前版本(例如,语义版本、修订哈希等)。
|
||||
|
||||
[推荐标签](/zh/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
|
||||
|
||||
<!--
|
||||
### kubernetes.io/arch
|
||||
|
@ -365,7 +365,7 @@ For example, `10M` means 10 megabits per second.
|
|||
入站流量(到 Pod)通过控制排队的数据包来处理,以有效地处理数据。
|
||||
要限制 Pod 的带宽,请编写对象定义 JSON 文件并使用 `kubernetes.io/ingress-bandwidth`
|
||||
注解指定数据流量速度。 用于指定入站的速率单位是每秒,
|
||||
作为[量纲(Quantity)](/zh/docs/reference/kubernetes-api/common-definitions/quantity/)。
|
||||
作为[量纲(Quantity)](/zh-cn/docs/reference/kubernetes-api/common-definitions/quantity/)。
|
||||
例如,`10M`表示每秒 10 兆比特。
|
||||
|
||||
<!--
|
||||
|
@ -403,7 +403,7 @@ For example, `10M` means 10 megabits per second.
|
|||
你为一个 Pod 所设置的限制不会影响其他 Pod 的带宽。
|
||||
要限制 Pod 的带宽,请编写对象定义 JSON 文件并使用 `kubernetes.io/egress-bandwidth` 注解指定数据流量速度。
|
||||
用于指定出站的速率单位是每秒比特数,
|
||||
以[量纲(Quantity)](/zh/docs/reference/kubernetes-api/common-definitions/quantity/)的形式给出。
|
||||
以[量纲(Quantity)](/zh-cn/docs/reference/kubernetes-api/common-definitions/quantity/)的形式给出。
|
||||
例如,`10M` 表示每秒 10 兆比特。
|
||||
|
||||
<!-- ### beta.kubernetes.io/instance-type (deprecated) -->
|
||||
|
@ -873,7 +873,7 @@ created with Indexed [completion mode](/docs/concepts/workloads/controllers/job/
|
|||
用于:Pod
|
||||
|
||||
kube-controller-manager 中的 Job 控制器为使用 Indexed
|
||||
[完成模式](/zh/docs/concepts/workloads/controllers/job/#completion-mode)创建的 Pod
|
||||
[完成模式](/zh-cn/docs/concepts/workloads/controllers/job/#completion-mode)创建的 Pod
|
||||
设置此注解。
|
||||
|
||||
<!--
|
||||
|
@ -926,7 +926,7 @@ You should **not** manually add or remove this annotation.
|
|||
|
||||
用于:Job
|
||||
|
||||
Job 上存在此注解表明控制平面正在[使用 Finalizer 追踪 Job](/zh/docs/concepts/workloads/controllers/job/#job-tracking-with-finalizers)。
|
||||
Job 上存在此注解表明控制平面正在[使用 Finalizer 追踪 Job](/zh-cn/docs/concepts/workloads/controllers/job/#job-tracking-with-finalizers)。
|
||||
你 **不** 可以手动添加或删除此注解。
|
||||
|
||||
<!--
|
||||
|
@ -944,9 +944,9 @@ Use [Taints and Tolerations](/docs/concepts/scheduling-eviction/taint-and-tolera
|
|||
|
||||
用于:Node
|
||||
|
||||
此注解需要启用 [NodePreferAvoidPods 调度插件](/zh/docs/reference/scheduling/config/#scheduling-plugins)。
|
||||
此注解需要启用 [NodePreferAvoidPods 调度插件](/zh-cn/docs/reference/scheduling/config/#scheduling-plugins)。
|
||||
该插件自 Kubernetes 1.22 起已被弃用。
|
||||
请改用[污点和容忍度](/zh/docs/concepts/scheduling-eviction/taint-and-toleration/)。
|
||||
请改用[污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/)。
|
||||
|
||||
**下面列出的污点总是在 Node 上使用**
|
||||
|
||||
|
@ -973,7 +973,7 @@ Node 控制器通过监控 Node 的健康状况来检测 Node 是否准备就绪
|
|||
|
||||
例子:`node.kubernetes.io/unreachable:NoExecute`
|
||||
|
||||
Node 控制器将此污点添加到对应[节点状况](/zh/docs/concepts/architecture/nodes/#condition) `Ready`
|
||||
Node 控制器将此污点添加到对应[节点状况](/zh-cn/docs/concepts/architecture/nodes/#condition) `Ready`
|
||||
为 `Unknown` 的 Node 上。
|
||||
|
||||
<!--
|
||||
|
@ -1057,7 +1057,7 @@ A user can manually add the taint to a Node marking it out-of-service. If the `N
|
|||
|
||||
用户可以手动将污点添加到节点,将其标记为停止服务。
|
||||
如果 `kube-controller-manager` 上启用了 `NodeOutOfServiceVolumeDetach`
|
||||
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/),
|
||||
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/),
|
||||
并且一个节点被这个污点标记为停止服务,如果节点上的 Pod 没有对应的容忍度,
|
||||
这类 Pod 将被强制删除,并且,针对在节点上被终止 Pod 的卷分离操作将被立即执行。
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ Refer to
|
|||
[Non-graceful node shutdown](/docs/concepts/architecture/nodes/#non-graceful-node-shutdown)
|
||||
for further details about when and how to use this taint.
|
||||
-->
|
||||
有关何时以及如何使用此污点的更多详细信息,请参阅[非正常节点关闭](/zh/docs/concepts/architecture/nodes/#non-graceful-node-shutdown)。
|
||||
有关何时以及如何使用此污点的更多详细信息,请参阅[非正常节点关闭](/zh-cn/docs/concepts/architecture/nodes/#non-graceful-node-shutdown)。
|
||||
{{< /caution >}}
|
||||
|
||||
<!--
|
||||
|
@ -1120,10 +1120,10 @@ for more information.
|
|||
用于:Namespace
|
||||
|
||||
值**必须**是 `privileged`、`baseline` 或 `restricted` 之一,它们对应于
|
||||
[Pod 安全标准](/zh/docs/concepts/security/pod-security-standards) 级别。
|
||||
[Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards) 级别。
|
||||
特别地,`enforce` 标签 **禁止** 在带标签的 Namespace 中创建任何不符合指示级别要求的 Pod。
|
||||
|
||||
请请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### pod-security.kubernetes.io/enforce-version
|
||||
|
@ -1146,9 +1146,9 @@ for more information.
|
|||
用于:Namespace
|
||||
|
||||
值**必须**是 `latest` 或格式为 `v<MAJOR>.<MINOR>` 的有效 Kubernetes 版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### pod-security.kubernetes.io/audit
|
||||
|
@ -1171,12 +1171,12 @@ for more information.
|
|||
|
||||
用于:Namespace
|
||||
|
||||
值**必须**是与 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards) 级别相对应的
|
||||
值**必须**是与 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards) 级别相对应的
|
||||
`privileged`、`baseline` 或 `restricted` 之一。
|
||||
具体来说,`audit` 标签不会阻止在带标签的 Namespace 中创建不符合指示级别要求的 Pod,
|
||||
但会向该 Pod 添加审计注解。
|
||||
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### pod-security.kubernetes.io/audit-version
|
||||
|
@ -1199,9 +1199,9 @@ for more information.
|
|||
用于:Namespace
|
||||
|
||||
值**必须**是 `latest` 或格式为 `v<MAJOR>.<MINOR>` 的有效 Kubernetes 版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### pod-security.kubernetes.io/warn
|
||||
|
@ -1226,12 +1226,12 @@ for more information.
|
|||
|
||||
用于:Namespace
|
||||
|
||||
值**必须**是与 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards)级别相对应的
|
||||
值**必须**是与 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards)级别相对应的
|
||||
`privileged`、`baseline` 或 `restricted` 之一。特别地,
|
||||
`warn` 标签不会阻止在带标签的 Namespace 中创建不符合指示级别概述要求的 Pod,但会在这样做后向用户返回警告。
|
||||
请注意,在创建或更新包含 Pod 模板的对象时也会显示警告,例如 Deployment、Jobs、StatefulSets 等。
|
||||
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### pod-security.kubernetes.io/warn-version
|
||||
|
@ -1255,11 +1255,11 @@ for more information.
|
|||
用于:Namespace
|
||||
|
||||
值**必须**是 `latest` 或格式为 `v<MAJOR>.<MINOR>` 的有效 Kubernetes 版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
此注解决定了在验证提交的 Pod 时要应用的 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards)策略的版本。
|
||||
请注意,在创建或更新包含 Pod 模板的对象时也会显示警告,
|
||||
例如 Deployment、Jobs、StatefulSets 等。
|
||||
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
请参阅[在名字空间级别实施 Pod 安全性](/zh-cn/docs/concepts/security/pod-security-admission)了解更多信息。
|
||||
|
||||
<!--
|
||||
### seccomp.security.alpha.kubernetes.io/pod (deprecated) {#seccomp-security-alpha-kubernetes-io-pod}
|
||||
|
@ -1274,9 +1274,9 @@ the settings you specify apply to all containers in that Pod.
|
|||
|
||||
此注解自 Kubernetes v1.19 起已被弃用,将在 v1.25 中失效。
|
||||
要为 Pod 指定安全设置,请在 Pod 规范中包含 `securityContext` 字段。
|
||||
Pod 的 `.spec` 中的 [`securityContext`](/zh/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context)
|
||||
Pod 的 `.spec` 中的 [`securityContext`](/zh-cn/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context)
|
||||
字段定义了 Pod 级别的安全属性。
|
||||
你[为 Pod 设置安全上下文](/zh/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) 时,
|
||||
你[为 Pod 设置安全上下文](/zh-cn/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) 时,
|
||||
你所给出的设置适用于该 Pod 中的所有容器。
|
||||
|
||||
<!--
|
||||
|
@ -1291,7 +1291,7 @@ based on setting `securityContext` within the Pod's `.spec`.
|
|||
### container.seccomp.security.alpha.kubernetes.io/[NAME] {#container-seccomp-security-alpha-kubernetes-io}
|
||||
|
||||
此注解自 Kubernetes v1.19 起已被弃用,将在 v1.25 中失效。
|
||||
教程[使用 seccomp 限制容器的系统调用](/zh/docs/tutorials/security/seccomp/)将引导你完成将
|
||||
教程[使用 seccomp 限制容器的系统调用](/zh-cn/docs/tutorials/security/seccomp/)将引导你完成将
|
||||
seccomp 配置文件应用于 Pod 或其容器的步骤。
|
||||
该教程介绍了在 Kubernetes 中配置 seccomp 的支持机制,基于在 Pod 的 `.spec` 中设置 `securityContext`。
|
||||
|
||||
|
@ -1313,7 +1313,7 @@ Refer to [Converting the volume mode of a Snapshot](/docs/concepts/storage/volum
|
|||
值可以是 `true` 或者 `false`。
|
||||
这决定了当从 VolumeSnapshot 创建 {{< glossary_tooltip text="PersistentVolumeClaim" term_id="persistent-volume-claim" >}}
|
||||
时,用户是否可以修改源卷的模式。
|
||||
更多信息请参阅[转换快照的卷模式](/zh/docs/concepts/storage/volume-snapshots/#convert-volume-mode)和
|
||||
更多信息请参阅[转换快照的卷模式](/zh-cn/docs/concepts/storage/volume-snapshots/#convert-volume-mode)和
|
||||
[Kubernetes CSI 开发者文档](https://kubernetes-csi.github.io/docs/)。
|
||||
|
||||
<!--
|
||||
|
@ -1331,15 +1331,15 @@ See more details on the [Audit Annotations](/docs/reference/labels-annotations-t
|
|||
-->
|
||||
## 用于审计的注解 {#annonations-used-for-audit}
|
||||
|
||||
- [`authorization.k8s.io/decision`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#authorization-k8s-io-decision)
|
||||
- [`authorization.k8s.io/reason`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#authorization-k8s-io-reason)
|
||||
- [`insecure-sha1.invalid-cert.kubernetes.io/$hostname`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#insecure-sha1-invalid-cert-kubernetes-io-hostname)
|
||||
- [`missing-san.invalid-cert.kubernetes.io/$hostname`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#missing-san-invalid-cert-kubernetes-io-hostname)
|
||||
- [`pod-security.kubernetes.io/audit-violations`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-audit-violations)
|
||||
- [`pod-security.kubernetes.io/enforce-policy`](/zh/zh/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-enforce-policy)
|
||||
- [`pod-security.kubernetes.io/exempt`](/zh/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-exempt)
|
||||
- [`authorization.k8s.io/decision`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#authorization-k8s-io-decision)
|
||||
- [`authorization.k8s.io/reason`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#authorization-k8s-io-reason)
|
||||
- [`insecure-sha1.invalid-cert.kubernetes.io/$hostname`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#insecure-sha1-invalid-cert-kubernetes-io-hostname)
|
||||
- [`missing-san.invalid-cert.kubernetes.io/$hostname`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#missing-san-invalid-cert-kubernetes-io-hostname)
|
||||
- [`pod-security.kubernetes.io/audit-violations`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-audit-violations)
|
||||
- [`pod-security.kubernetes.io/enforce-policy`](/zh-cn/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-enforce-policy)
|
||||
- [`pod-security.kubernetes.io/exempt`](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/#pod-security-kubernetes-io-exempt)
|
||||
|
||||
在[审计注解](/zh/docs/reference/labels-annotations-taints/audit-annotations/)页面上查看更多详细信息。
|
||||
在[审计注解](/zh-cn/docs/reference/labels-annotations-taints/audit-annotations/)页面上查看更多详细信息。
|
||||
|
||||
## kubeadm
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ The annotations apply to audit events. Audit events are different from objects i
|
|||
`events.k8s.io`).
|
||||
-->
|
||||
{{< note >}}
|
||||
Kubernetes API 中不使用以下注解。当你在集群中[启用审计](/zh/docs/tasks/debug/debug-cluster/audit/)时,
|
||||
Kubernetes API 中不使用以下注解。当你在集群中[启用审计](/zh-cn/docs/tasks/debug/debug-cluster/audit/)时,
|
||||
审计事件数据将使用 API 组 `audit.k8s.io` 中的 `Event` 写入。
|
||||
注解适用于审计事件。审计事件不同于[事件 API ](/zh/docs/reference/kubernetes-api/cluster-resources/event-v1/)
|
||||
注解适用于审计事件。审计事件不同于[事件 API ](/zh-cn/docs/reference/kubernetes-api/cluster-resources/event-v1/)
|
||||
(API 组 `events.k8s.io`)中的对象。
|
||||
{{</note>}}
|
||||
|
||||
|
@ -45,7 +45,7 @@ from the PodSecurity enforcement.
|
|||
|
||||
例子:`pod-security.kubernetes.io/exempt: namespace`
|
||||
|
||||
值**必须**是对应于 [Pod 安全豁免](/zh/docs/concepts/security/pod-security-admission/#exemptions)维度的
|
||||
值**必须**是对应于 [Pod 安全豁免](/zh-cn/docs/concepts/security/pod-security-admission/#exemptions)维度的
|
||||
`user`、`namespace` 或 `runtimeClass` 之一。
|
||||
此注解指示 PodSecurity 基于哪个维度的强制豁免执行。
|
||||
|
||||
|
@ -68,12 +68,12 @@ for more information.
|
|||
|
||||
例子:`pod-security.kubernetes.io/enforce-policy: restricted:latest`
|
||||
|
||||
值**必须**是对应于 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards) 级别的
|
||||
值**必须**是对应于 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards) 级别的
|
||||
`privileged:<版本>`、`baseline:<版本>`、`restricted:<版本>`,
|
||||
关联的版本**必须**是 `latest` 或格式为 `v<MAJOR>.<MINOR>` 的有效 Kubernetes 版本。
|
||||
此注解通知有关在 PodSecurity 准入期间允许或拒绝 Pod 的执行级别。
|
||||
|
||||
有关详细信息,请参阅 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards/)。
|
||||
有关详细信息,请参阅 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards/)。
|
||||
|
||||
<!--
|
||||
## pod-security.kubernetes.io/audit-violations
|
||||
|
@ -96,10 +96,10 @@ for more information.
|
|||
PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container
|
||||
"example" must set securityContext.allowPrivilegeEscalation=false), ...`
|
||||
|
||||
注解值给出审计策略违规的详细说明,它包含所违反的 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards/)级别以及
|
||||
注解值给出审计策略违规的详细说明,它包含所违反的 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards/)级别以及
|
||||
PodSecurity 执行中违反的特定策略及对应字段。
|
||||
|
||||
有关详细信息,请参阅 [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards/)。
|
||||
有关详细信息,请参阅 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards/)。
|
||||
|
||||
<!--
|
||||
## authorization.k8s.io/decision
|
||||
|
@ -116,7 +116,7 @@ See [Auditing](/docs/tasks/debug/debug-cluster/audit/) for more information.
|
|||
|
||||
此注解在 Kubernetes 审计日志中表示请求是否获得授权。
|
||||
|
||||
有关详细信息,请参阅[审计](/zh/docs/tasks/debug/debug-cluster/audit/)。
|
||||
有关详细信息,请参阅[审计](/zh-cn/docs/tasks/debug/debug-cluster/audit/)。
|
||||
|
||||
<!--
|
||||
## authorization.k8s.io/reason
|
||||
|
@ -133,7 +133,7 @@ See [Auditing](/docs/tasks/debug/debug-cluster/audit/) for more information.
|
|||
|
||||
此注解给出了 Kubernetes 审计日志中 [decision](#authorization-k8s-io-decision) 的原因。
|
||||
|
||||
有关详细信息,请参阅[审计](/zh/docs/tasks/debug/debug-cluster/audit/)。
|
||||
有关详细信息,请参阅[审计](/zh-cn/docs/tasks/debug/debug-cluster/audit/)。
|
||||
|
||||
## missing-san.invalid-cert.kubernetes.io/$hostname
|
||||
|
||||
|
|
|
@ -41,15 +41,15 @@ with that removal.
|
|||
|
||||
## Kubernetes 项目 {#kubernetes-project}
|
||||
|
||||
* Kubernetes 博客:[Dockershim 弃用常见问题解答](/zh/blog/2022/02/17/dockershim-faq/)(最初发表于 2022/02/17)
|
||||
* Kubernetes 博客:[Dockershim 弃用常见问题解答](/zh-cn/blog/2022/02/17/dockershim-faq/)(最初发表于 2022/02/17)
|
||||
|
||||
* Kubernetes 博客:[Kubernetes 即将移除 Dockershim:承诺和下一步](/blog/2022/01/07/kubernetes-is-moving-on-from-dockershim/)(发表于 2022/01/07)
|
||||
|
||||
* Kubernetes 博客:[移除 Dockershim 即将到来。你准备好了吗?](/zh/blog/2021/11/12/are-you-ready-for-dockershim-removal/)(发表于 2021/11/12)
|
||||
* Kubernetes 博客:[移除 Dockershim 即将到来。你准备好了吗?](/zh-cn/blog/2021/11/12/are-you-ready-for-dockershim-removal/)(发表于 2021/11/12)
|
||||
|
||||
* Kubernetes 文档:[从 dockershim 迁移](/zh/docs/tasks/administer-cluster/migrating-from-dockershim/)
|
||||
* Kubernetes 文档:[从 dockershim 迁移](/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/)
|
||||
|
||||
* Kubernetes 文档:[容器运行时](/zh/docs/setup/production-environment/container-runtimes/)
|
||||
* Kubernetes 文档:[容器运行时](/zh-cn/docs/setup/production-environment/container-runtimes/)
|
||||
|
||||
* Kubernetes 增强建议:[KEP-2221: 从 kubelet 中删除 dockershim](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2221-remove-dockershim/README.md)
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ on the default port.
|
|||
| TCP | 入站 | 10250 | Kubelet API | 自身, 控制面 |
|
||||
| TCP | 入站 | 30000-32767 | NodePort Services† | 所有 |
|
||||
|
||||
† [NodePort Services](/zh/docs/concepts/services-networking/service/)的默认端口范围。
|
||||
† [NodePort Services](/zh-cn/docs/concepts/services-networking/service/)的默认端口范围。
|
||||
|
||||
所有默认端口都可以重新配置。当使用自定义的端口时,你需要打开这些端口来代替这里提到的默认端口。
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ or [v1beta3](/docs/reference/config-api/kube-scheduler-config.v1beta3/))
|
|||
struct.
|
||||
-->
|
||||
你可以通过运行 `kube-scheduler --config <filename>` 来设置调度模板,
|
||||
使用 KubeSchedulerConfiguration ([v1beta2](/zh/docs/reference/config-api/kube-scheduler-config.v1beta2/)
|
||||
或者 [v1beta3](/zh/docs/reference/config-api/kube-scheduler-config.v1beta3/)) 结构体。
|
||||
使用 KubeSchedulerConfiguration ([v1beta2](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta2/)
|
||||
或者 [v1beta3](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/)) 结构体。
|
||||
|
||||
<!-- A minimal configuration looks as follows: -->
|
||||
最简单的配置如下:
|
||||
|
@ -199,7 +199,7 @@ extension points:
|
|||
[taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/).
|
||||
Implements extension points: `filter`, `prescore`, `score`.
|
||||
-->
|
||||
- `TaintToleration`:实现了[污点和容忍](/zh/docs/concepts/scheduling-eviction/taint-and-toleration/)。
|
||||
- `TaintToleration`:实现了[污点和容忍](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/)。
|
||||
|
||||
实现的扩展点:`filter`,`prescore`,`score`。
|
||||
<!--
|
||||
|
@ -223,8 +223,8 @@ extension points:
|
|||
and [node affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity).
|
||||
Extension points: `filter`, `score`.
|
||||
-->
|
||||
- `NodeAffinity`:实现了[节点选择器](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
|
||||
和[节点亲和性](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)。
|
||||
- `NodeAffinity`:实现了[节点选择器](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
|
||||
和[节点亲和性](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)。
|
||||
|
||||
实现的扩展点:`filter`,`score`.
|
||||
<!--
|
||||
|
@ -232,7 +232,7 @@ extension points:
|
|||
[Pod topology spread](/docs/concepts/workloads/pods/pod-topology-spread-constraints/).
|
||||
Extension points: `preFilter`, `filter`, `preScore`, `score`.
|
||||
-->
|
||||
- `PodTopologySpread`:实现了 [Pod 拓扑分布](/zh/docs/concepts/workloads/pods/pod-topology-spread-constraints/)。
|
||||
- `PodTopologySpread`:实现了 [Pod 拓扑分布](/zh-cn/docs/concepts/workloads/pods/pod-topology-spread-constraints/)。
|
||||
|
||||
实现的扩展点:`preFilter`,`filter`,`preScore`,`score`。
|
||||
<!--
|
||||
|
@ -331,7 +331,7 @@ extension points:
|
|||
[inter-Pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity).
|
||||
Extension points: `preFilter`, `filter`, `preScore`, `score`.
|
||||
-->
|
||||
- `InterPodAffinity`:实现 [Pod 间亲和性与反亲和性](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)。
|
||||
- `InterPodAffinity`:实现 [Pod 间亲和性与反亲和性](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)。
|
||||
|
||||
实现的扩展点:`preFilter`,`filter`,`preScore`,`score`。
|
||||
<!--
|
||||
|
@ -767,21 +767,21 @@ as well as its seamless integration with the existing methods for configuring ex
|
|||
* The scheduler plugin `NodeLabel` is deprecated; instead, use the [`NodeAffinity`](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) plugin (enabled by default) to achieve similar behavior.
|
||||
-->
|
||||
* 调度器插件 `NodeLabel` 已弃用;
|
||||
相反,要使用 [`NodeAffinity`](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
|
||||
相反,要使用 [`NodeAffinity`](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
|
||||
插件(默认启用)来实现类似的行为。
|
||||
|
||||
<!--
|
||||
* The scheduler plugin `ServiceAffinity` is deprecated; instead, use the [`InterPodAffinity`](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity) plugin (enabled by default) to achieve similar behavior.
|
||||
-->
|
||||
* 调度程序插件 `ServiceAffinity` 已弃用;
|
||||
相反,使用 [`InterPodAffinity`](/zh/doc/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
|
||||
相反,使用 [`InterPodAffinity`](/zh-cn/doc/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
|
||||
插件(默认启用)来实现类似的行为。
|
||||
|
||||
<!--
|
||||
* The scheduler plugin `NodePreferAvoidPods` is deprecated; instead, use [node taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) to achieve similar behavior.
|
||||
-->
|
||||
* 调度器插件 `NodePreferAvoidPods` 已弃用;
|
||||
相反,使用 [节点污点](/zh/docs/concepts/scheduling-eviction/taint-and-toleration/) 来实现类似的行为。
|
||||
相反,使用 [节点污点](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/) 来实现类似的行为。
|
||||
|
||||
<!--
|
||||
* A plugin enabled in a v1beta2 configuration file takes precedence over the default configuration for that plugin.
|
||||
|
@ -817,7 +817,7 @@ as well as its seamless integration with the existing methods for configuring ex
|
|||
* Read the [kube-scheduler configuration (v1beta2)](/docs/reference/config-api/kube-scheduler-config.v1beta2/) reference
|
||||
* Read the [kube-scheduler configuration (v1beta3)](/docs/reference/config-api/kube-scheduler-config.v1beta3/) reference
|
||||
-->
|
||||
* 阅读 [kube-scheduler 参考](/zh/docs/reference/command-line-tools-reference/kube-scheduler/)
|
||||
* 了解[调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)
|
||||
* 阅读 [kube-scheduler 配置 (v1beta2)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta2/) 参考
|
||||
* 阅读 [kube-scheduler 配置 (v1beta3)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta3/) 参考
|
||||
* 阅读 [kube-scheduler 参考](/zh-cn/docs/reference/command-line-tools-reference/kube-scheduler/)
|
||||
* 了解[调度](/zh-cn/docs/concepts/scheduling-eviction/kube-scheduler/)
|
||||
* 阅读 [kube-scheduler 配置 (v1beta2)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta2/) 参考
|
||||
* 阅读 [kube-scheduler 配置 (v1beta3)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/) 参考
|
||||
|
|
|
@ -26,17 +26,17 @@ This scheduling policy is not supported since Kubernetes v1.23. Associated flags
|
|||
|
||||
但是从 Kubernetes v1.23 版本开始,不再支持这种调度策略。
|
||||
同样地也不支持相关的 `policy-config-file`、 `policy-configmap`、 `policy-configmap-namespace` 以及 `use-legacy-policy-config` 标志。
|
||||
你可以通过使用 [调度配置](/zh/docs/reference/scheduling/config/)来实现类似的行为。
|
||||
你可以通过使用 [调度配置](/zh-cn/docs/reference/scheduling/config/)来实现类似的行为。
|
||||
|
||||
## {{% heading "whatsnext" %}}
|
||||
|
||||
<!--
|
||||
* Learn about [scheduling](/docs/concepts/scheduling-eviction/kube-scheduler/)
|
||||
* Learn about [kube-scheduler Configuration](/docs/reference/scheduling/config/)
|
||||
* Read the [kube-scheduler configuration reference (v1beta3)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta3/)
|
||||
* Read the [kube-scheduler configuration reference (v1beta3)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/)
|
||||
-->
|
||||
|
||||
* 了解 [调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)。
|
||||
* 了解 [kube-scheduler 配置](/zh/docs/reference/scheduling/config/)。
|
||||
* 阅读 [kube-scheduler 配置参考(v1beta3)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta3/)。
|
||||
* 了解 [调度](/zh-cn/docs/concepts/scheduling-eviction/kube-scheduler/)。
|
||||
* 了解 [kube-scheduler 配置](/zh-cn/docs/reference/scheduling/config/)。
|
||||
* 阅读 [kube-scheduler 配置参考(v1beta3)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/)。
|
||||
|
||||
|
|
Loading…
Reference in New Issue