How to enable the external endpoints of the services in Pantaris


How to enable the external endpoints of the services in Pantaris

How do we enable the type to LoadBalancer ?
We want to run two containers in same pod.

As per our requirement we want to put two containers in same pod, which allows two containers to communicate/reachable via “localhost” network. And single service of this pod deployment will expose two ports to the external network.

How can we achieve this using docker compose yaml.

Hey, the 2 containers can communicate to each other using their internal name. In this example

version: "3.7"

services:
  serviceA:
    labels:
      "com.calponia.networking.0.port": 8080
    ports:
      - '8080:8080'
  serviceB:
    ports:
      - '8081:8081'

the serviceA could call http://serviceB:8081 and also the other way around. As serviceB has no networking configured, it’s not exposed to any external network. serviceA has a port connected and will be exposed behind the PANTARIS authorization. If you had a service which has "com.calponia.networking.0.external": "true" it’s available internet facing without any PANTARIS authorization.

Find more information in the docs:

How to connect shh to this container

You can get a shell within the container similar to the logs. Just select the beloging option as last step insead of logs.

Please create sperate topics for different questions in the future.