forked from LaconicNetwork/kompose
update created artifacts for kubernetes and openshift so that env variables are populated in a particular order
264 lines
6.1 KiB
JSON
264 lines
6.1 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "etherpad",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "etherpad"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "80",
|
|
"port": 80,
|
|
"targetPort": 9001
|
|
},
|
|
{
|
|
"name": "80",
|
|
"port": 80,
|
|
"targetPort": 9001
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "etherpad"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "mariadb",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "3306",
|
|
"port": 3306,
|
|
"targetPort": 3306
|
|
},
|
|
{
|
|
"name": "3307",
|
|
"port": 3307,
|
|
"targetPort": 3307
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "mariadb"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "etherpad",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "etherpad"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "etherpad"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "etherpad",
|
|
"image": "centos/etherpad",
|
|
"ports": [
|
|
{
|
|
"containerPort": 9001
|
|
},
|
|
{
|
|
"containerPort": 9001
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "DB_DBID",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "DB_HOST",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "DB_PASS",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "DB_PORT",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "DB_USER",
|
|
"value": "openshift"
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "mariadb",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "mariadb"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "mariadb-claim0",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "mariadb-claim0"
|
|
}
|
|
},
|
|
{
|
|
"name": "mariadb-claim1",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "mariadb-claim1"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "mariadb",
|
|
"image": "centos/mariadb",
|
|
"ports": [
|
|
{
|
|
"containerPort": 3306
|
|
},
|
|
{
|
|
"containerPort": 3307
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "MYSQL_DATABASE",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "MYSQL_PASSWORD",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "MYSQL_ROOT_PASSWORD",
|
|
"value": "openshift"
|
|
},
|
|
{
|
|
"name": "MYSQL_USER",
|
|
"value": "openshift"
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "mariadb-claim0",
|
|
"mountPath": "/var/lib/mysql"
|
|
},
|
|
{
|
|
"name": "mariadb-claim1",
|
|
"mountPath": "/var/lib/mysql"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "mariadb-claim0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "mariadb-claim0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "mariadb-claim1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "mariadb-claim1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|