apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: gerrit-gerrit-http-virtual-service
  namespace: gerrit
spec:
  hosts:
  - example.com
  gateways:
  - gerrit/gerrit-istio-gateway
  http:
  - name: gerrit-replica-replica
    route:
    - destination:
        port:
          number: 48080
        host: replica.gerrit.svc.cluster.local
  tcp:
  - match:
    - port: 49419
    route:
    - destination:
        port:
          number: 49419
        host: replica.gerrit.svc.cluster.local
