Skip to main content

Private Network

Applications in a namespace or project can communicate with each other in a private network without sending traffic to the internet. Each Service has a unique name in the project, so other Services in the project can connect to it with this name and a specific port (as name:port). In the Private Network section of each application, you can manage and configure its ports.

To do this, simply click the application's name in the panel and go to Private Network.

Adding a Port​

To add a new port, click Add New Port in the private network section and first define a name. Note that this name is used by other applications to call the application.

Then enter a name of your choice for the port, and the port and target port values, which correspond to port and targetPort in a Kubernetes Service.

A Service, or svc for short, is an entity responsible for tasks such as distributing traffic among similar Pods, assigning a domain, and exposing a Pod's ports.

  • The port (port) specifies the port other Services send requests to, which is the exposed port.
  • The target port (targetPort) is the port the container listens on, and requests arriving at the port (port) are forwarded to it.

For example, suppose you want to open the application's port 443 for communication over HTTPS. To do this, simply set both the port and the target port to 443.

Now, if you want requests arriving at the application's port 3000 to be answered by the container's port 8080, you can define a new port with the port set to 3000 and the target port set to 8080. This is called port mapping or port forwarding.

Finally, choose the protocol from TCP or UDP.

Deleting a Port​

To delete a port or port mapping, simply click Delete next to it in the private network section.