Support port expose (#1227)

This commit is contained in:
Hang Yan
2020-01-04 14:15:10 +08:00
committed by GitHub
parent 5732a555cb
commit 1089a26844
10 changed files with 173 additions and 12 deletions
+3
View File
@@ -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
View File
@@ -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": {}