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.
188 lines
4.2 KiB
JSON
188 lines
4.2 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "mariadb",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"service": "mariadb"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "mariadb",
|
|
"image": "centos/mariadb",
|
|
"ports": [
|
|
{
|
|
"containerPort": 3306,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "MYSQL_PASSWORD",
|
|
"value": "wordpress"
|
|
},
|
|
{
|
|
"name": "MYSQL_ROOT_PASSWORD",
|
|
"value": "wordpress"
|
|
},
|
|
{
|
|
"name": "MYSQL_USER",
|
|
"value": "wordpress"
|
|
},
|
|
{
|
|
"name": "MYSQL_DATABASE",
|
|
"value": "wordpress"
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "mariadb",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "3306",
|
|
"protocol": "TCP",
|
|
"port": 3306,
|
|
"targetPort": 3306
|
|
}
|
|
],
|
|
"selector": {
|
|
"service": "mariadb"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "wordpress",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "wordpress"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"service": "wordpress"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "wordpress"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "wordpress",
|
|
"image": "wordpress",
|
|
"ports": [
|
|
{
|
|
"containerPort": 80,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "WORDPRESS_DB_HOST",
|
|
"value": "mariadb:3306"
|
|
},
|
|
{
|
|
"name": "WORDPRESS_DB_NAME",
|
|
"value": "wordpress"
|
|
},
|
|
{
|
|
"name": "WORDPRESS_DB_PASSWORD",
|
|
"value": "wordpress"
|
|
},
|
|
{
|
|
"name": "WORDPRESS_DB_USER",
|
|
"value": "wordpress"
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "wordpress",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"service": "wordpress"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "8080",
|
|
"protocol": "TCP",
|
|
"port": 8080,
|
|
"targetPort": 80
|
|
}
|
|
],
|
|
"selector": {
|
|
"service": "wordpress"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
}
|
|
]
|
|
}
|