This is the first step to rename 'zh' to 'zh-cn'. There are several reasons why we rename the language name.
- The upstream docsy theme changed the language name, leading to many warnings during site build;
The side-effect is that the i18n strings are no longer working.
- We believe renaming the language is the right thing to do, because this move can make room for other variants of Chinese language, such as 'zh-tw', 'zh-sg' etc.
There would be several follow-ups to this PR, such as fixing the intra-site links, adding redirects etc.
We will lock up changes to zh/zh-cn pages for the moment, until this one gets in.
This PR is based on commit cdad0a7342.
5.8 KiB
api_metadata, content_type, description, title, weight, auto_generated
| api_metadata | content_type | description | title | weight | auto_generated | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
api_reference | Binding 将一个对象与另一个对象联系起来; 例如,一个 Pod 被调度程序绑定到一个节点。 | Binding | 9 | true |
apiVersion: v1
import "k8s.io/api/core/v1"
Binding
Binding 将一个对象与另一个对象联系起来; 例如,一个 Pod 被调度程序绑定到一个节点。 已在 1.7 版本弃用,请使用 Pod 的 binding 子资源。
-
apiVersion: v1
-
kind: Binding
-
metadata (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta)
标准对象的元数据, 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-
target (<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference), 必需
要绑定到标准对象的目标对象。
操作
create 创建一个 Binding
HTTP 请求
POST /api/v1/namespaces/{namespace}/bindings
参数
-
namespace (路径参数): string, 必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace
-
body: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding, 必需
-
dryRun (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun
-
fieldManager (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager
-
fieldValidation (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation
-
pretty (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty
响应
200 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): OK
201 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): Created
202 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): Accepted
401: Unauthorized
create 创建 Pod 的绑定
HTTP 请求
POST /api/v1/namespaces/{namespace}/pods/{name}/binding
参数
-
name (路径参数): string, 必需
Binding 的名称
-
namespace (路径参数): string, 必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace
-
body: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding, 必需
-
dryRun (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun
-
fieldManager (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager
-
fieldValidation (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation
-
pretty (查询参数): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty
响应
200 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): OK
201 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): Created
202 (<a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding): Accepted
401: Unauthorized