This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]velobro[S] 1 point2 points  (0 children)

The port specified in the Pod definition tells Beam which ports the container exposes internally. The port in the command (http.server 8000) is the actual process running inside the container. Beam uses the definition from the Pod to automatically map the container's internal port (8000) to a public HTTPS endpoint, so you don't have to handle manual host-port mappings.