SSH replica port in virtual service

10 views
Skip to first unread message

Saheer Babu

unread,
Oct 15, 2025, 9:09:28 AM (2 days ago) Oct 15
to Repo and Gerrit Discussion
Hi,

In GerritCluster resource, for the primary I have set sshport as 29418 and for replica, set 29419 for the same.

I was expecting the VirtualService to be created such that 29419 is routed to gerrit-replica:29419. But what I have is:

```
 tcp:
    - match:
        - port: 29418
      route:
        - destination:
            host: gerrit-service.gerrit.svc.cluster.local
            port:
              number: 29418
    - match:
        - port: 29418
      route:
        - destination:
            host: gerrit-replica-service.gerrit.svc.cluster.local
            port:
              number: 29418
```

Is this expected?

Thanks
Saheer

Thomas Dräbing

unread,
Oct 15, 2025, 10:52:30 AM (2 days ago) Oct 15
to Saheer Babu, Repo and Gerrit Discussion
Hi Saheer,

this is not expected, since this would lead to all requests being routed to the primary Gerrit. Could you share your GerritCluster resource or at least the relevant sections, i.e. the .spec.gerrits[*].service maps?

Thanks,
Thomas


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/25038801-4bc8-486b-8c53-b85c2df2285dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages