forked from LaconicNetwork/kompose
according to docker compose specs, certain fields are merged and certain others are concatented
231 lines
5.0 KiB
JSON
231 lines
5.0 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "server",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "server"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "3000",
|
|
"port": 3000,
|
|
"targetPort": 3000
|
|
},
|
|
{
|
|
"name": "5000",
|
|
"port": 5000,
|
|
"targetPort": 5000
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "server"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "new-my-service",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "new-my-service"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
},
|
|
{
|
|
"type": "ImageChange",
|
|
"imageChangeParams": {
|
|
"automatic": true,
|
|
"containerNames": [
|
|
"new-my-service"
|
|
],
|
|
"from": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "new-my-service:latest"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"io.kompose.service": "new-my-service"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "new-my-service"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "new-my-service",
|
|
"image": " ",
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ImageStream",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "new-my-service",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "new-my-service"
|
|
}
|
|
},
|
|
"spec": {
|
|
"tags": [
|
|
{
|
|
"name": "latest",
|
|
"annotations": null,
|
|
"from": {
|
|
"kind": "DockerImage",
|
|
"name": "nginx"
|
|
},
|
|
"generation": null,
|
|
"importPolicy": {}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"dockerImageRepository": ""
|
|
}
|
|
},
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "server",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "server"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
},
|
|
{
|
|
"type": "ImageChange",
|
|
"imageChangeParams": {
|
|
"automatic": true,
|
|
"containerNames": [
|
|
"test_server"
|
|
],
|
|
"from": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "server:latest"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"io.kompose.service": "server"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "server"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "test-server",
|
|
"image": " ",
|
|
"ports": [
|
|
{
|
|
"containerPort": 3000
|
|
},
|
|
{
|
|
"containerPort": 5000
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ImageStream",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "server",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "server"
|
|
}
|
|
},
|
|
"spec": {
|
|
"tags": [
|
|
{
|
|
"name": "latest",
|
|
"annotations": null,
|
|
"from": {
|
|
"kind": "DockerImage",
|
|
"name": "test"
|
|
},
|
|
"generation": null,
|
|
"importPolicy": {}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"dockerImageRepository": ""
|
|
}
|
|
}
|
|
]
|
|
}
|