forked from LaconicNetwork/kompose
With the recent changes in the output format as List, updated tests as well so they validate on the new format of output.
180 lines
3.8 KiB
JSON
180 lines
3.8 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "flask",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "flask"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": null,
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"service": "flask"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "flask"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "flask",
|
|
"image": "dharmit/flask",
|
|
"ports": [
|
|
{
|
|
"containerPort": 5000,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "REDIS_HOST",
|
|
"value": "redis"
|
|
},
|
|
{
|
|
"name": "REDIS_PORT",
|
|
"value": "6379"
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "flask",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "flask"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "31000",
|
|
"protocol": "TCP",
|
|
"port": 31000,
|
|
"targetPort": 5000
|
|
}
|
|
],
|
|
"selector": {
|
|
"service": "flask"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": null,
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"service": "redis"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "fpllngzieyoh43e0133o",
|
|
"hostPath": {
|
|
"path": "/opt/redis"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "redis",
|
|
"image": "dharmit/redis",
|
|
"ports": [
|
|
{
|
|
"containerPort": 6379,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "fpllngzieyoh43e0133o",
|
|
"mountPath": "/redis"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "6379",
|
|
"protocol": "TCP",
|
|
"port": 6379,
|
|
"targetPort": 6379
|
|
}
|
|
],
|
|
"selector": {
|
|
"service": "redis"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
}
|
|
]
|
|
}
|