forked from LaconicNetwork/kompose
155 lines
3.7 KiB
JSON
155 lines
3.7 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.service.type": "nodeport",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "6379",
|
|
"port": 6379,
|
|
"targetPort": 6379
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"type": "NodePort"
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.service.type": "nodeport",
|
|
"kompose.version": "%VERSION%"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
},
|
|
"name": "redis"
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"strategy": {},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.service.type": "nodeport",
|
|
"kompose.version": "%VERSION%"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "ALLOW_EMPTY_PASSWORD",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"key": "ALLOW_EMPTY_PASSWORD",
|
|
"name": "foo-env"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "BAR",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"key": "BAR",
|
|
"name": "bar-env"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "FOO",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"key": "FOO",
|
|
"name": "bar-env"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"image": "bitnami/redis:latest",
|
|
"imagePullPolicy": "",
|
|
"name": "redis",
|
|
"ports": [
|
|
{
|
|
"containerPort": 6379
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always",
|
|
"serviceAccountName": "",
|
|
"volumes": null
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ConfigMap",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-env",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis-foo-env"
|
|
}
|
|
},
|
|
"data": {
|
|
"ALLOW_EMPTY_PASSWORD": "yes"
|
|
}
|
|
},
|
|
{
|
|
"kind": "ConfigMap",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "bar-env",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis-bar-env"
|
|
}
|
|
},
|
|
"data": {
|
|
"BAR": "FOO",
|
|
"FOO": "BAR"
|
|
}
|
|
}
|
|
]
|
|
}
|