51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-03/schema",
|
|
"type": "object",
|
|
"required": false,
|
|
"description": "A replicationController resource. A replicationController helps to create and manage a set of tasks. It acts as a factory to create new tasks based on a template. It ensures that there are a specific number of tasks running. If fewer tasks are running than `replicas` then the needed tasks are generated using `taskTemplate`. If more tasks are running than `replicas`, then excess tasks are deleted.",
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"creationTimestamp": {
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"selfLink": {
|
|
"type": "string",
|
|
"required": false
|
|
},
|
|
"desiredState": {
|
|
"type": "object",
|
|
"required": false,
|
|
"description": "The desired configuration of the replicationController",
|
|
"properties": {
|
|
"replicas": {
|
|
"type": "number",
|
|
"required": false,
|
|
"description": "Number of tasks desired in the set"
|
|
},
|
|
"replicasInSet": {
|
|
"type": "object",
|
|
"required": false,
|
|
"description": "Required labels used to identify tasks in the set"
|
|
},
|
|
"taskTemplate": {
|
|
"type": "object",
|
|
"required": false,
|
|
"description": "Template from which to create new tasks, as necessary. Identical to task schema."
|
|
}
|
|
}
|
|
},
|
|
"labels": {
|
|
"type": "object",
|
|
"required": false
|
|
}
|
|
}
|
|
}
|