2017.03.29
These demos are validated against:
on bosh-lite (11025e9166499ee35ee04d243d1407024b97a2c6).
The demo app is in cf-acceptance-tests (84a19e6ce1eb39d7109eb9cc0a19ca6105dc4e58).
2017.03.29
These demos are validated against:
on bosh-lite (11025e9166499ee35ee04d243d1407024b97a2c6).
The demo app is in cf-acceptance-tests (84a19e6ce1eb39d7109eb9cc0a19ca6105dc4e58).
git clone https://github.com/cloudfoundry/cf-acceptance-tests.git
cf routes
cf create-route demo-spc bosh-lite.com --hostname mpg2
cf routes
cf push mpg -c 'go-online --ports=7777,8888,8080'
curl -k https://mpg.bosh-lite.com/ports
curl -k https://mpg2.bosh-lite.com/ports
-> should failcf curl /v2/apps/$(cf app mpg --guid)
cf curl /v2/apps/$(cf app mpg --guid) -X PUT -d '\{"ports": \[7777, 8888, 8080\]\}'
cf curl /v2/route_mappings
<ROUTE-GUID>
s) cf curl /v2/routes?q=host:mpg2
cf curl /v2/route_mappings -X POST -d "\{\"app_guid\": \"$(cf app mpg --guid)\", \"route_guid\": \"<ROUTE-GUID>\", \"app_port\": 7777\}"
cf curl /v2/route_mappings
curl -k https://mpg.bosh-lite.com/ports
curl -k https://mpg2.bosh-lite.com/ports
git clone https://github.com/cloudfoundry/cf-acceptance-tests.git
cf routes
cf create-route demo-spc tcp.bosh-lite.com --port 1077
cf create-route demo-spc tcp.bosh-lite.com --port 1080
cf create-route demo-spc tcp.bosh-lite.com --port 1088
cf routes
cf push mpg-tcp -c 'go-online --ports=7777,8888,8080' --no-route --no-start
cf curl /v2/apps/$(cf app mpg-tcp --guid)
cf curl /v2/apps/$(cf app mpg-tcp --guid) -X PUT -d '\{"ports": \[7777, 8888, 8080\]\}'
cf curl /v2/route_mappings
<ROUTE-GUID>
s) cf curl /v2/routes
and check each guid for routes tcp.bosh-lite.com:1080
, tcp.bosh-lite.com:1077
, tcp.bosh-lite.com:1088
cf curl /v2/route_mappings -X POST -d "\{\"app_guid\": \"$(cf app mpg-tcp --guid)\", \"route_guid\": \"<ROUTE-GUID>\", \"app_port\": 8080\}"
cf curl /v2/route_mappings -X POST -d "\{\"app_guid\": \"$(cf app mpg-tcp --guid)\", \"route_guid\": \"<ROUTE-GUID>\", \"app_port\": 7777\}"
cf curl /v2/route_mappings -X POST -d "\{\"app_guid\": \"$(cf app mpg-tcp --guid)\", \"route_guid\": \"<ROUTE-GUID>\", \"app_port\": 8888\}"
cf curl /v2/route_mappings
curl -k http://tcp.bosh-lite.com:1077
curl -k http://tcp.bosh-lite.com:1080
curl -k http://tcp.bosh-lite.com:1088
@ciberklied @mgrzejszczak - are you all actively using this feature currently?
Is there a way to get HTTP and TCP traffic to the same app without this feature?
The APIs described in these docs are now supported and stable.
HTTP and TCP traffic can be routed to the same app using this feature.
The APIs mentioned in this demo are incomplete, experimental, unsupported and may be removed at any time. We abandoned this implementation after determining the design was unnecessarily complex, and haven't prioritized removing or replacing it. Please send use cases for application receiving requests on multiple ports to me, as this helps us prioritize delivering a supported solution.
Thank you.
Hello!
I have a mongo docker image, I push it to SAP Cloud Foundry, how can I expose 27017 port to access from outside? Any idea?
Thanks
Is this feature disabled? I understand that the API is experimental or sth but IMO this feature is absolutely crucial