forked from LaconicNetwork/kompose
122 lines
2.8 KiB
JSON
122 lines
2.8 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"name": "web"
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "web"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"image": "nginx",
|
|
"imagePullPolicy": "",
|
|
"name": "web",
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/etc/tls",
|
|
"name": "web-cm0"
|
|
},
|
|
{
|
|
"mountPath": "/etc/test-a-key.key",
|
|
"name": "web-cm1",
|
|
"subPath": "test-a-key.key"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always",
|
|
"serviceAccountName": "",
|
|
"volumes": [
|
|
{
|
|
"configMap": {
|
|
"name": "web-cm0"
|
|
},
|
|
"name": "web-cm0"
|
|
},
|
|
{
|
|
"configMap": {
|
|
"items": [
|
|
{
|
|
"key": "a.key",
|
|
"path": "test-a-key.key"
|
|
}
|
|
],
|
|
"name": "web-cm1"
|
|
},
|
|
"name": "web-cm1"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ConfigMap",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "web-cm0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
}
|
|
},
|
|
"data": {
|
|
"a.crt": "test-crt-data...",
|
|
"a.key": "test-key-data...."
|
|
}
|
|
},
|
|
{
|
|
"kind": "ConfigMap",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "web-cm1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"annotations": {
|
|
"use-subpath": "true"
|
|
}
|
|
},
|
|
"data": {
|
|
"a.key": "test-key-data...."
|
|
}
|
|
}
|
|
]
|
|
}
|