Skip to main content

Private Network

Applications within a namespace or project can communicate with each other over an Private Network without sending traffic to the internet. Each service has a unique name within the project, allowing other project services to connect using this name and a specific port (in the format name:port). In the "Private Network" section, you can manage and configure the ports of each application.

To do this, click on the application name in the user panel and navigate to the "Private Network" section.

Panel

Add a Port

To add a new port, in the Private Network section, click on the "Add New Port" button and first define a name. Note that this name will be used by other applications to call the application.

Add Port

Then enter a custom name for the port and specify the values for port and targetPort, which correspond to port and targetPort in Kubernetes services, respectively.

Service, or svc for short, is a nature responsible for tasks such as distributing traffic between similar Pods, assigning a domain, and exposing Pod ports.

  • port specifies the port to which other services send requests, commonly referred to as exposed.
  • targetPort is the port on which the container listens, and incoming requests to the port are directed to it.

For example, suppose you want to open port 443 of the application for HTTPS communication. To do this, enter the settings as follows.

443 Example

Now, if you want requests entering port 3000 of the application to be responded to by port 8080 of the container, you can define the new port as follows. This process is called Port Mapping or Port Forwarding.

8080 Example

Finally, select the protocol from TCP or UDP.

Delete a Port

To delete a port or Port Mapping, simply click on the delete option next to it in the Private Network section.

Delete Port