Can I specify multiple advertisedHost values under linkListeners.transport?

Hi everyone,

I’m deploying OpenZiti routers in a multi-cloud mesh (AWS + OVH), and I’d like each router to accept link-dial connections on both its internal cluster name and a public DNS name. In my values.yaml, I currently have:

linkListeners:
  transport:
    enabled: true
    containerPort: 3022
    advertisedHost: router1.example.com
    advertisedPort: 3022
    …

It looks like I can only set one advertisedHost.
1. Is there any way to provide multiple advertisedHost entries so that the same transport listener responds on, say, router1.internal.local and router1.public.example.com?

2. If multiple hosts aren’t supported, are there any recommended patterns or workarounds to achieve the same outcome?

Any advice or pointers would be hugely appreciated. Thanks in advance!

You should be able to declare a second listener

for example I have two ports listening:

link:
  dialers:
    - binding: transport
  listeners:
    - binding:          transport
      bind:             tls:0.0.0.0:10080
      advertise:        tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:10080
      options:
        outQueueSize:   4

    - binding:          transport
      bind:             tls:0.0.0.0:20080
      advertise:        tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:20080
      options:
        outQueueSize:   4

And the listeners

LISTEN   0        4096                   *:10080                *:*      users:(("ziti",pid=222054,fd=7))
LISTEN   0        4096                   *:20080                *:*      users:(("ziti",pid=222054,fd=8))

Since you're deploying the router to Kubernetes, you can specify additional edge listeners in edge.additionalListeners (Install the Router in Kubernetes | OpenZiti) and I've just added experimental support for linkListeners.additionalListeners (optional, additional link bindings) with associated k8s cluster services and optional ingresses in this draft pull request which you may preview: configure router with additional link bindings by qrkourier · Pull Request #336 · openziti/helm-charts · GitHub

I won't have time to test it today but please let me know if you do!