forked from LaconicNetwork/kompose
121 lines
2.7 KiB
JSON
121 lines
2.7 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": "appfoo"
|
|
},
|
|
"name": "appfoo"
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "appfoo"
|
|
}
|
|
},
|
|
"strategy": {},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.network/app-network": "true",
|
|
"io.kompose.network/web-network": "true",
|
|
"io.kompose.service": "appfoo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"args": [
|
|
"sh",
|
|
"-c",
|
|
"echo Hello Foo"
|
|
],
|
|
"image": "foo:latest",
|
|
"imagePullPolicy": "",
|
|
"name": "appfoo",
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always",
|
|
"serviceAccountName": "",
|
|
"volumes": null
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "NetworkPolicy",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "app-network",
|
|
"creationTimestamp": null
|
|
},
|
|
"spec": {
|
|
"podSelector": {
|
|
"matchLabels": {
|
|
"io.kompose.network/app-network": "true"
|
|
}
|
|
},
|
|
"ingress": [
|
|
{
|
|
"from": [
|
|
{
|
|
"podSelector": {
|
|
"matchLabels": {
|
|
"io.kompose.network/app-network": "true"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "NetworkPolicy",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "web-network",
|
|
"creationTimestamp": null
|
|
},
|
|
"spec": {
|
|
"podSelector": {
|
|
"matchLabels": {
|
|
"io.kompose.network/web-network": "true"
|
|
}
|
|
},
|
|
"ingress": [
|
|
{
|
|
"from": [
|
|
{
|
|
"podSelector": {
|
|
"matchLabels": {
|
|
"io.kompose.network/web-network": "true"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|