-
Hi, I use I have 1 pod, with 2 containers (nginx container + postgres DB container in single pod). I would like to use hosts 8080 port to connect to 80 on nginx. I used Is there a way to target only 1 container in pod for publishing? Here are steps to replicate it:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is how a pod works, you share one network namesapce so there is only one way to forward ports into it. Any container process can use the ports but only once, so if nginx already bound to 80 then postgres would not able to bind 80 as it is in already in use. |
Beta Was this translation helpful? Give feedback.
That is how a pod works, you share one network namesapce so there is only one way to forward ports into it. Any container process can use the ports but only once, so if nginx already bound to 80 then postgres would not able to bind 80 as it is in already in use.