[zh] Sync concepts section (6)

This commit is contained in:
Qiming Teng
2021-04-28 10:55:54 +08:00
parent 2ac91aaa59
commit 6f498cfeb9
4 changed files with 144 additions and 36 deletions
@@ -411,9 +411,32 @@ IngressClass 资源包含额外的配置,其中包括应当实现该类的控
<!--
IngressClass resources contain an optional parameters field. This can be used to
reference additional configuration for this class.
reference additional implementation-specific configuration for this class.
-->
IngressClass 资源包含一个可选的 `parameters` 字段,可用于为该类引用额外配置。
IngressClass 资源包含一个可选的 `parameters` 字段,可用于为该类引用额外的、
特定于具体实现的配置。
<!--
#### Namespace-scoped parameters
-->
#### 名字空间域的参数
{{< feature-state for_k8s_version="v1.21" state="alpha" >}}
<!--
`Parameters` field has a `scope` and `namespace` field that can be used to
reference a namespace-specific resource for configuration of an Ingress class.
`Scope` field defaults to `Cluster`, meaning, the default is cluster-scoped
resource. Setting `Scope` to `Namespace` and setting the `Namespace` field
will reference a parameters resource in a specific namespace:
-->
`parameters` 字段有一个 `scope``namespace` 字段,可用来引用特定
于名字空间的资源,对 Ingress 类进行配置。
`scope` 字段默认为 `Cluster`,表示默认是集群作用域的资源。
`scope` 设置为 `Namespace` 并设置 `namespace` 字段就可以引用某特定
名字空间中的参数资源。
{{< codenew file="service/networking/namespaced-params.yaml" >}}
<!--
### Deprecated Annotation
@@ -488,7 +511,7 @@ There are existing Kubernetes concepts that allow you to expose a single Service
<!--
If you create it using `kubectl apply -f` you should be able to view the state
of the Ingress you just added:
of the Ingress you added:
-->
如果使用 `kubectl apply -f` 创建此 Ingress,则应该能够查看刚刚添加的 Ingress 的状态: