kompose/script/test/fixtures/flask-redis/output-os.json
Suraj Deshmukh 9a4e953555 Functional Testing
Shell scripts to test k8s and os conversion
which can be ran by following command in root dir
`./script/test/cmd/tests.sh`
2016-08-08 04:39:10 +00:00

173 lines
3.1 KiB
JSON

{
"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": {}
}
}
{
"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": "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": {}
}