More Task -> Pod

This commit is contained in:
Brendan Burns
2014-06-08 21:39:57 -07:00
parent 4bd809e11e
commit 66e2575f2b
25 changed files with 80 additions and 405 deletions

View File

@@ -2,7 +2,7 @@
"$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.",
"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 `podTemplate`. If more tasks are running than `replicas`, then excess tasks are deleted.",
"properties": {
"kind": {
"type": "string",
@@ -35,7 +35,7 @@
"required": false,
"description": "Required labels used to identify tasks in the set"
},
"taskTemplate": {
"podTemplate": {
"type": "object",
"required": false,
"description": "Template from which to create new tasks, as necessary. Identical to task schema."

View File

@@ -7,7 +7,7 @@
"replicasInSet": {
"name": "testRun"
},
"taskTemplate": {
"podTemplate": {
"desiredState": {
"image": "dockerfile/nginx",
"networkPorts": [

View File

@@ -3,7 +3,7 @@
"desiredState": {
"replicas": 2,
"replicasInSet": {"name": "nginx"},
"taskTemplate": {
"podTemplate": {
"desiredState": {
"manifest": {
"containers": [{