forked from LaconicNetwork/kompose
229 lines
5.2 KiB
JSON
229 lines
5.2 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "6379",
|
|
"port": 6379,
|
|
"targetPort": 6379
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "web",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"annotations": {
|
|
"kompose.service.expose": "batman.example.com/dev,batwoman.example.com",
|
|
"kompose.service.expose.tls-secret": "test-secret"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "5000",
|
|
"port": 5000,
|
|
"targetPort": 5000
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "web"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "redis",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "redis"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "redis",
|
|
"image": "redis:3.0",
|
|
"ports": [
|
|
{
|
|
"containerPort": 6379
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "web",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"annotations": {
|
|
"kompose.service.expose": "batman.example.com/dev,batwoman.example.com",
|
|
"kompose.service.expose.tls-secret": "test-secret"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"io.kompose.service": "web"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"annotations": {
|
|
"kompose.service.expose": "batman.example.com/dev,batwoman.example.com",
|
|
"kompose.service.expose.tls-secret": "test-secret"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "web",
|
|
"image": "tuna/docker-counter23",
|
|
"ports": [
|
|
{
|
|
"containerPort": 5000
|
|
}
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "Ingress",
|
|
"apiVersion": "networking.k8s.io/v1",
|
|
"metadata": {
|
|
"name": "web",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "web"
|
|
},
|
|
"annotations": {
|
|
"kompose.service.expose": "batman.example.com/dev,batwoman.example.com",
|
|
"kompose.service.expose.tls-secret": "test-secret"
|
|
}
|
|
},
|
|
"spec": {
|
|
"tls": [
|
|
{
|
|
"hosts": [
|
|
"batman.example.com",
|
|
"batwoman.example.com"
|
|
],
|
|
"secretName": "test-secret"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"host": "batman.example.com",
|
|
"http": {
|
|
"paths": [
|
|
{
|
|
"path": "/dev",
|
|
"pathType": "Prefix",
|
|
"backend": {
|
|
"service": {
|
|
"name": "web",
|
|
"port": {
|
|
"number": 5000
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"host": "batwoman.example.com",
|
|
"http": {
|
|
"paths": [
|
|
{
|
|
"path": "/",
|
|
"pathType": "Prefix",
|
|
"backend": {
|
|
"service": {
|
|
"name": "web",
|
|
"port": {
|
|
"number": 5000
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
}
|
|
]
|
|
}
|