cancel
Showing results for 
Search instead for 
Did you mean: 
slooshoo
Cadet
Cadet
  • 497 Views

Why is the container-build sample do288-apache exposed under port 80 and not 8080 by default?

We create the image with the label

io.openshift.expose-services="8080:http"

yet when creating the route with 

oc expose svc/hola

port 8080 is not used. Why do we have to use 

oc expose svc/hola --port 8080

?

0 Kudos
1 Reply
eemarins
Mission Specialist
Mission Specialist
  • 445 Views

Hello,

This LABEL provides descriptive information in the same way as EXPOSE in Dockerfile.  It is optional, not required.

Kind Regards,

Join the discussion
You must log in to join this conversation.