forked from LaconicNetwork/kompose
132 lines
3.1 KiB
JSON
132 lines
3.1 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "nginx",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "nginx"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.storage-class-name": "custom-storage-class-name"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "80",
|
|
"port": 80,
|
|
"targetPort": 80
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "nginx"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "nginx",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "nginx"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.storage-class-name": "custom-storage-class-name"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "nginx"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "nginx"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%",
|
|
"kompose.volume.storage-class-name": "custom-storage-class-name"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "nginx-claim0",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "nginx-claim0"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "nginx",
|
|
"image": "nginx",
|
|
"ports": [
|
|
{
|
|
"containerPort": 80
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "nginx-claim0",
|
|
"mountPath": "/etc/nginx/nginx.conf"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "nginx-claim0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "nginx-claim0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
},
|
|
"storageClassName": "custom-storage-class-name"
|
|
},
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|