forked from LaconicNetwork/kompose
517 lines
12 KiB
JSON
517 lines
12 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
},
|
|
"annotations": {
|
|
"com.example.description": "Accounting webapp",
|
|
"com.example.empty-label": "",
|
|
"com.example.number": "42",
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "3000",
|
|
"port": 3000,
|
|
"targetPort": 3000
|
|
},
|
|
{
|
|
"name": "3000-tcp",
|
|
"port": 3000,
|
|
"targetPort": 3000
|
|
},
|
|
{
|
|
"name": "3001",
|
|
"port": 3001,
|
|
"targetPort": 3001
|
|
},
|
|
{
|
|
"name": "3002",
|
|
"port": 3002,
|
|
"targetPort": 3002
|
|
},
|
|
{
|
|
"name": "3003",
|
|
"port": 3003,
|
|
"targetPort": 3003
|
|
},
|
|
{
|
|
"name": "3004",
|
|
"port": 3004,
|
|
"targetPort": 3004
|
|
},
|
|
{
|
|
"name": "3005",
|
|
"port": 3005,
|
|
"targetPort": 3005
|
|
},
|
|
{
|
|
"name": "8000",
|
|
"port": 8000,
|
|
"targetPort": 8000
|
|
},
|
|
{
|
|
"name": "9090",
|
|
"port": 9090,
|
|
"targetPort": 8080
|
|
},
|
|
{
|
|
"name": "9091",
|
|
"port": 9091,
|
|
"targetPort": 8081
|
|
},
|
|
{
|
|
"name": "49100",
|
|
"port": 49100,
|
|
"targetPort": 22
|
|
},
|
|
{
|
|
"name": "8001",
|
|
"port": 8001,
|
|
"targetPort": 8001
|
|
},
|
|
{
|
|
"name": "5000",
|
|
"port": 5000,
|
|
"targetPort": 5000
|
|
},
|
|
{
|
|
"name": "5001",
|
|
"port": 5001,
|
|
"targetPort": 5001
|
|
},
|
|
{
|
|
"name": "5002",
|
|
"port": 5002,
|
|
"targetPort": 5002
|
|
},
|
|
{
|
|
"name": "5003",
|
|
"port": 5003,
|
|
"targetPort": 5003
|
|
},
|
|
{
|
|
"name": "5004",
|
|
"port": 5004,
|
|
"targetPort": 5004
|
|
},
|
|
{
|
|
"name": "5005",
|
|
"port": 5005,
|
|
"targetPort": 5005
|
|
},
|
|
{
|
|
"name": "5006",
|
|
"port": 5006,
|
|
"targetPort": 5006
|
|
},
|
|
{
|
|
"name": "5007",
|
|
"port": 5007,
|
|
"targetPort": 5007
|
|
},
|
|
{
|
|
"name": "5008",
|
|
"port": 5008,
|
|
"targetPort": 5008
|
|
},
|
|
{
|
|
"name": "5009",
|
|
"port": 5009,
|
|
"targetPort": 5009
|
|
},
|
|
{
|
|
"name": "5010",
|
|
"port": 5010,
|
|
"targetPort": 5010
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Pod",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.network/other-network": "true",
|
|
"io.kompose.network/other-other-network": "true",
|
|
"io.kompose.network/some-network": "true",
|
|
"io.kompose.service": "foo"
|
|
},
|
|
"annotations": {
|
|
"com.example.description": "Accounting webapp",
|
|
"com.example.empty-label": "",
|
|
"com.example.number": "42",
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "foo-claim0",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "foo-claim0"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-claim1",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "foo-claim1"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-claim2",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "foo-claim2"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-claim3",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "foo-claim3"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-claim4",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "foo-claim4",
|
|
"readOnly": true
|
|
}
|
|
},
|
|
{
|
|
"name": "datavolume",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "datavolume"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-tmpfs0",
|
|
"emptyDir": {
|
|
"medium": "Memory"
|
|
}
|
|
},
|
|
{
|
|
"name": "foo-tmpfs1",
|
|
"emptyDir": {
|
|
"medium": "Memory"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "my-web-container",
|
|
"image": "redis",
|
|
"command": [
|
|
"/code/entrypoint.sh",
|
|
"-p",
|
|
"3000"
|
|
],
|
|
"args": [
|
|
"bundle",
|
|
"exec",
|
|
"thin",
|
|
"-p",
|
|
"3000"
|
|
],
|
|
"workingDir": "/code",
|
|
"ports": [
|
|
{
|
|
"containerPort": 3000
|
|
},
|
|
{
|
|
"containerPort": 3001
|
|
},
|
|
{
|
|
"containerPort": 3002
|
|
},
|
|
{
|
|
"containerPort": 3003
|
|
},
|
|
{
|
|
"containerPort": 3004
|
|
},
|
|
{
|
|
"containerPort": 3005
|
|
},
|
|
{
|
|
"containerPort": 8000
|
|
},
|
|
{
|
|
"containerPort": 8080
|
|
},
|
|
{
|
|
"containerPort": 8081
|
|
},
|
|
{
|
|
"containerPort": 22
|
|
},
|
|
{
|
|
"containerPort": 8001
|
|
},
|
|
{
|
|
"containerPort": 5000
|
|
},
|
|
{
|
|
"containerPort": 5001
|
|
},
|
|
{
|
|
"containerPort": 5002
|
|
},
|
|
{
|
|
"containerPort": 5003
|
|
},
|
|
{
|
|
"containerPort": 5004
|
|
},
|
|
{
|
|
"containerPort": 5005
|
|
},
|
|
{
|
|
"containerPort": 5006
|
|
},
|
|
{
|
|
"containerPort": 5007
|
|
},
|
|
{
|
|
"containerPort": 5008
|
|
},
|
|
{
|
|
"containerPort": 5009
|
|
},
|
|
{
|
|
"containerPort": 5010
|
|
}
|
|
],
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "1m",
|
|
"memory": "52428800"
|
|
},
|
|
"requests": {
|
|
"memory": "20971520"
|
|
}
|
|
},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "foo-claim0",
|
|
"mountPath": "/var/lib/mysql"
|
|
},
|
|
{
|
|
"name": "foo-claim1",
|
|
"mountPath": "/var/lib/mysql"
|
|
},
|
|
{
|
|
"name": "foo-claim2",
|
|
"mountPath": "/code"
|
|
},
|
|
{
|
|
"name": "foo-claim3",
|
|
"mountPath": "/var/www/html"
|
|
},
|
|
{
|
|
"name": "foo-claim4",
|
|
"readOnly": true,
|
|
"mountPath": "/etc/configs/"
|
|
},
|
|
{
|
|
"name": "datavolume",
|
|
"mountPath": "/var/lib/mysql"
|
|
},
|
|
{
|
|
"name": "foo-tmpfs0",
|
|
"mountPath": "/run"
|
|
},
|
|
{
|
|
"name": "foo-tmpfs1",
|
|
"mountPath": "/tmp"
|
|
}
|
|
],
|
|
"livenessProbe": {
|
|
"exec": {
|
|
"command": [
|
|
"echo \"hello world\""
|
|
]
|
|
},
|
|
"timeoutSeconds": 1,
|
|
"periodSeconds": 10,
|
|
"failureThreshold": 5
|
|
},
|
|
"securityContext": {
|
|
"capabilities": {
|
|
"add": [
|
|
"ALL"
|
|
],
|
|
"drop": [
|
|
"NET_ADMIN",
|
|
"SYS_ADMIN"
|
|
]
|
|
},
|
|
"privileged": true
|
|
},
|
|
"stdin": true,
|
|
"tty": true
|
|
}
|
|
],
|
|
"restartPolicy": "OnFailure",
|
|
"terminationGracePeriodSeconds": 20,
|
|
"hostname": "foo",
|
|
"subdomain": "foo.com"
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-claim0",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo-claim0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-claim1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo-claim1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-claim2",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo-claim2"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-claim3",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo-claim3"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo-claim4",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo-claim4"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadOnlyMany"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "datavolume",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "datavolume"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|