forked from LaconicNetwork/kompose
272 lines
6.3 KiB
JSON
272 lines
6.3 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "postgresql",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "postgresql"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.size": "200Mi"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "5432",
|
|
"port": 5432,
|
|
"targetPort": 5432
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "postgresql"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "6379",
|
|
"port": 6379,
|
|
"targetPort": 6379
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "postgresql",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "postgresql"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.size": "200Mi"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "postgresql"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "postgresql"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.size": "200Mi"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "postgresql-claim0",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "postgresql-claim0"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "postgresql",
|
|
"image": "sameersbn/postgresql:9.5-3",
|
|
"ports": [
|
|
{
|
|
"containerPort": 5432
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "DB_EXTENSION",
|
|
"value": "pg_trgm"
|
|
},
|
|
{
|
|
"name": "DB_NAME",
|
|
"value": "gitlabhq_production"
|
|
},
|
|
{
|
|
"name": "DB_PASS",
|
|
"value": "password"
|
|
},
|
|
{
|
|
"name": "DB_USER",
|
|
"value": "gitlab"
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "postgresql-claim0",
|
|
"mountPath": "/var/lib/postgresql"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "postgresql-claim0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "postgresql-claim0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "200Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "redis-claim0",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "redis-claim0"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "redis",
|
|
"image": "sameersbn/redis:latest",
|
|
"args": [
|
|
"--loglevel warning"
|
|
],
|
|
"ports": [
|
|
{
|
|
"containerPort": 6379
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "redis-claim0",
|
|
"mountPath": "/var/lib/redis"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis-claim0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis-claim0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "300Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|