committed by
Kubernetes Prow Robot
parent
0268ed0c18
commit
b05129acc3
@@ -117,7 +117,7 @@ multiple API versions, each at a different API path, such as `/api/v1` or
|
||||
## API 版本
|
||||
|
||||
为了使删除字段或者重构资源表示更加容易,Kubernetes 支持
|
||||
多个API版本。每一个版本都在不同API路径下,例如 `/api/v1` 或者
|
||||
多个API版本。每一个版本都在不同API路径下,例如 `/api/v1` 或者
|
||||
`/apis/extensions/v1beta1`。
|
||||
|
||||
<!--
|
||||
@@ -187,7 +187,7 @@ The API group is specified in a REST path and in the `apiVersion` field of a ser
|
||||
|
||||
## API 组
|
||||
|
||||
为了更容易地扩展Kubernetes API,我们实现了[*`API组`*](https://git.k8s.io/community/contributors/design-proposals/api-machinery/api-group.md)。
|
||||
为了更容易地扩展Kubernetes API,我们实现了[*`API组`*](https://git.k8s.io/community/contributors/design-proposals/api-machinery/api-group.md)。
|
||||
API组在REST路径和序列化对象的 **`apiVersion`** 字段中指定。
|
||||
|
||||
<!--
|
||||
@@ -239,9 +239,9 @@ to pick up the `--runtime-config` changes.
|
||||
|
||||
## 启用 API 组
|
||||
|
||||
某些资源和API组默认情况下处于启用状态。 可以通过在apiserver上设置 `--runtime-config` 来启用或禁用它们。
|
||||
`--runtime-config` 接受逗号分隔的值。
|
||||
例如:要禁用batch/v1,请设置 `--runtime-config=batch/v1=false`,以启用batch/v2alpha1,请设置`--runtime-config=batch/v2alpha1`。
|
||||
某些资源和API组默认情况下处于启用状态。 可以通过在apiserver上设置 `--runtime-config` 来启用或禁用它们。
|
||||
`--runtime-config` 接受逗号分隔的值。
|
||||
例如:要禁用batch/v1,请设置 `--runtime-config=batch/v1=false`,以启用batch/v2alpha1,请设置`--runtime-config=batch/v2alpha1`。
|
||||
该标志接受描述apiserver的运行时配置的逗号分隔的一组键值对。
|
||||
|
||||
重要:启用或禁用组或资源需要重新启动apiserver和控制器管理器来使得 `--runtime-config` 更改生效。
|
||||
@@ -257,7 +257,7 @@ apiserver. `--runtime-config` accepts comma separated values. For example: to di
|
||||
|
||||
## 启用组中资源
|
||||
|
||||
DaemonSets,Deployments,HorizontalPodAutoscalers,Ingress,Jobs 和 ReplicaSets是默认启用的。
|
||||
DaemonSets,Deployments,HorizontalPodAutoscalers,Ingress,Jobs 和 ReplicaSets是默认启用的。
|
||||
其他扩展资源可以通过在apiserver上设置 `--runtime-config` 来启用。
|
||||
`--runtime-config` 接受逗号分隔的值。 例如:要禁用 Deployment 和 Ingress,
|
||||
请设置 `--runtime-config=extensions/v1beta1/deployments=false,extensions/v1beta1/ingress=false`
|
||||
|
||||
@@ -160,7 +160,7 @@ spec:
|
||||
image: nginx:1.7.9
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
|
||||
```
|
||||
|
||||
{{% /capture %}}
|
||||
|
||||
@@ -95,7 +95,7 @@ One way to create a Deployment using a `.yaml` file like the one above is to use
|
||||
in the `kubectl` command-line interface, passing the `.yaml` file as an argument. Here's an example:
|
||||
-->
|
||||
|
||||
使用类似于上面的 `.yaml` 文件来创建 Deployment,一种方式是使用 `kubectl` 命令行接口(CLI)中的
|
||||
使用类似于上面的 `.yaml` 文件来创建 Deployment,一种方式是使用 `kubectl` 命令行接口(CLI)中的
|
||||
[`kubectl apply`](/docs/reference/generated/kubectl/kubectl-commands#apply) 命令,
|
||||
将 `.yaml` 文件作为参数。下面是一个示例:
|
||||
|
||||
|
||||
@@ -33,12 +33,12 @@ need the features they provide.
|
||||
-->
|
||||
|
||||
命名空间为名称提供了一个范围。
|
||||
资源的名称需要在命名空间内是惟一的,但不能跨命名空间。命名空间不能嵌套在另外一个命名空间内,而且每个 Kubernetes
|
||||
资源的名称需要在命名空间内是惟一的,但不能跨命名空间。命名空间不能嵌套在另外一个命名空间内,而且每个 Kubernetes
|
||||
资源只能属于一个命名空间。
|
||||
|
||||
<!--
|
||||
Namespaces provide a scope for names. Names of resources need to be unique within a namespace,
|
||||
but not across namespaces. Namespaces can not be nested inside one another and each Kubernetes
|
||||
but not across namespaces. Namespaces can not be nested inside one another and each Kubernetes
|
||||
resource can only be in one namespace.
|
||||
-->
|
||||
|
||||
@@ -100,7 +100,7 @@ Kubernetes starts with three initial namespaces:
|
||||
* `kube-system` The namespace for objects created by the Kubernetes system
|
||||
* `kube-public` This namespace is created automatically and is readable by all users (including those not authenticated). This namespace is mostly reserved for cluster usage, in case that some resources should be visible and readable publicly throughout the whole cluster. The public aspect of this namespace is only a convention, not a requirement.
|
||||
-->
|
||||
|
||||
|
||||
* `default` 没有指明使用其它命名空间的对象所使用的默认命名空间
|
||||
* `kube-system` Kubernetes 系统创建对象所使用的命名空间
|
||||
* `kube-public` 这个命名空间是自动创建的,所有用户(包括未经过身份验证的用户)都可以读取它。这个命名空间主要用于集群使用,以防某些资源在整个集群中应该是可见和可读的。这个命名空间的公共方面只是一种约定,而不是要求。
|
||||
|
||||
Reference in New Issue
Block a user