kubernetes/api/doc/controller-schema.json

51 lines
1.6 KiB
JSON
Raw Normal View History

2014-06-06 19:40:48 -04:00
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"required": false,
2014-06-09 00:52:49 -04:00
"description": "A replicationController resource. A replicationController helps to create and manage a set of pods. It acts as a factory to create new pods based on a template. It ensures that there are a specific number of pods running. If fewer pods are running than `replicas` then the needed pods are generated using `podTemplate`. If more pods are running than `replicas`, then excess pods are deleted.",
2014-06-06 19:40:48 -04:00
"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,
2014-06-09 00:52:49 -04:00
"description": "Number of pods desired in the set"
2014-06-06 19:40:48 -04:00
},
"replicaSelector": {
2014-06-06 19:40:48 -04:00
"type": "object",
"required": false,
2014-06-09 00:52:49 -04:00
"description": "Required labels used to identify pods in the set"
2014-06-06 19:40:48 -04:00
},
2014-06-09 00:39:57 -04:00
"podTemplate": {
2014-06-06 19:40:48 -04:00
"type": "object",
"required": false,
2014-06-09 00:52:49 -04:00
"description": "Template from which to create new pods, as necessary. Identical to pod schema."
2014-06-06 19:40:48 -04:00
}
}
},
"labels": {
"type": "object",
"required": false
}
}
}