3.7 KiB
api_metadata | content_type | description | title | weight | auto_generated | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
api_reference | Binding ties one object to another; for example, a pod is bound to a node by a scheduler. | Binding | 9 | true |
apiVersion: v1
import "k8s.io/api/core/v1"
Binding
Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.
-
apiVersion: v1
-
kind: Binding
-
metadata (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-
target (<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference), required
The target object that you want to bind to the standard object.
Operations
create
create a Binding
HTTP Request
POST /api/v1/namespaces/{namespace}/bindings
Parameters
-
namespace (in path): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace
-
body: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding, required
-
dryRun (in query): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun
-
fieldManager (in query): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager
-
pretty (in query): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty
Response
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
create binding of a Pod
HTTP Request
POST /api/v1/namespaces/{namespace}/pods/{name}/binding
Parameters
-
name (in path): string, required
name of the Binding
-
namespace (in path): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace
-
body: <a href="{{< ref "../cluster-resources/binding-v1#Binding" >}}">Binding, required
-
dryRun (in query): string
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun
-
fieldManager (in query): string
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager
-
pretty (in query): string
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty
Response
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