What are the differences between the columns «Port» and «Target» on a service's page in Rancher?

2024-10-20--22-27-02

Column «Port» Column «Target»
Definition The external port exposed by the service The internal port on the pod or container
Purpose Specifies the port on the host accessible externally Indicates the port where the application listens
Visibility Accessible from outside the cluster Accessible only within the cluster
Configuration Defined in the service configuration Defined in the pod or container specification
Traffic flow Receives incoming traffic to the service Receives forwarded traffic from the «Port» column
Use case Allows clients to connect to the service Routes traffic to the correct application port