Docs: Samples should listen on $PORT instead of 8080

Created on 20 Jul 2018  路  3Comments  路  Source: knative/docs

Expected Behavior

Per the container contract in knative/serving, containers serving HTTP traffic should listen on the port specified in the $PORT environment variable, and not assume 8080 (despite this being the default value).

Actual Behavior

Most of the samples are hard coded to listen on 8080.

kinenhancement kinsample priorit2 triagneeds-eng-input

Most helpful comment

Hi I know this is not the place to ask this but did you manage to change the exposed port and target port? The documentation should really provide examples for servers listening to ports other than 8080

All 3 comments

Hi I know this is not the place to ask this but did you manage to change the exposed port and target port? The documentation should really provide examples for servers listening to ports other than 8080

Hey I have an application running on port number 9095 but my knative service is on port 8080, so can i chnage this 8080 port to 9095 in my knative service?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xtreme-sameer-vohra picture xtreme-sameer-vohra  路  6Comments

abrennan89 picture abrennan89  路  4Comments

ryandawsonuk picture ryandawsonuk  路  4Comments

brian-burton picture brian-burton  路  6Comments

dprotaso picture dprotaso  路  4Comments