forked from LaconicNetwork/kompose
Support port expose (#1227)
This commit is contained in:
@@ -6,6 +6,9 @@ services:
|
||||
image: tutum/hello-world
|
||||
ports:
|
||||
- 80:80
|
||||
expose: # this may be mis-usage, only to test expose with ports.
|
||||
- "3000"
|
||||
- "80"
|
||||
networks:
|
||||
- helloworld-network
|
||||
|
||||
|
||||
+8
@@ -23,6 +23,11 @@
|
||||
"name": "80",
|
||||
"port": 80,
|
||||
"targetPort": 80
|
||||
},
|
||||
{
|
||||
"name": "3000",
|
||||
"port": 3000,
|
||||
"targetPort": 3000
|
||||
}
|
||||
],
|
||||
"selector": {
|
||||
@@ -76,6 +81,9 @@
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 80
|
||||
},
|
||||
{
|
||||
"containerPort": 3000
|
||||
}
|
||||
],
|
||||
"resources": {}
|
||||
|
||||
Reference in New Issue
Block a user