Microservice Container Ports
In the detail page of a microservice, you can configure its container ports in the dedicated Container ports card.
At least one container port is needed in order to expose the microservice. If you do not set any container port the microservice will be unreachable by any other service in the Project.
To define a container port, four properties are needed:
- Port name
- Target Port
The Port name is the unique identifier of the port, which can be used to refer to that port in the Console.
The Port field contains the abstracted Kubernetes Service port; this is the port that must be used by other pods to access the Service. The default port value is 80.
The Target Port represents the port that the Kubernetes container accepts traffic on. Our default is 3000.
The Protocol field defines the network protocol used for the Service. The default is TCP but UDP is also supported.