Support compose global deploy mode to daemonset

This commit is contained in:
xianlubird
2018-05-07 15:19:47 +08:00
parent 1a2928eb47
commit 84b419c7ef
7 changed files with 167 additions and 11 deletions
@@ -36,7 +36,7 @@
}
},
{
"kind": "Deployment",
"kind": "DaemonSet",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "foo",
@@ -51,7 +51,6 @@
}
},
"spec": {
"replicas": 1,
"template": {
"metadata": {
"creationTimestamp": null,
@@ -69,10 +68,13 @@
],
"restartPolicy": "Always"
}
},
"strategy": {}
}
},
"status": {}
"status": {
"currentNumberScheduled": 0,
"numberMisscheduled": 0,
"desiredNumberScheduled": 0
}
}
]
}
}
+42 -1
View File
@@ -35,6 +35,47 @@
"loadBalancer": {}
}
},
{
"kind": "DaemonSet",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "foo",
"creationTimestamp": null,
"labels": {
"io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
}
},
"spec": {
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"io.kompose.service": "foo"
}
},
"spec": {
"containers": [
{
"name": "foo",
"image": "redis",
"resources": {}
}
],
"restartPolicy": "Always"
}
}
},
"status": {
"currentNumberScheduled": 0,
"numberMisscheduled": 0,
"desiredNumberScheduled": 0
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
@@ -127,4 +168,4 @@
}
}
]
}
}