Skip to content

Ingress

The chart can publish its services with the Gateway API (HTTPRoute) or with classic Kubernetes Ingress. Nothing is exposed until you enable one of them: the gateway has no public route by default.

Set your Gateway once. Every component that has a public hostname follows it:

global:
gatewayApi:
enabled: true
parentRefs:
- name: my-gateway
namespace: gateway-system

This covers the gateway, Matrix Authentication Service, Element Web, Element Admin and MatrixRTC. The Ingress of Matrix Authentication Service is then dropped. A component’s own route block wins over the global setting, for example to use a different Gateway or explicit hostnames:

gateway:
route:
hostnames: [matrix.example.com]
parentRefs:
- name: other-gateway
namespace: gateway-system

Leave route.hostnames empty to use the names derived from global.serverName.

Each component also has an ingress block (enabled, host or hostnames, className, TLS). Use it when the cluster has no Gateway API. Matrix Authentication Service renders an Ingress by default for account.<serverName>, using the cluster’s default IngressClass. Set matrix-authentication-service.ingress.className and host if you need a specific class.

Do not enable both an ingress and a route for the same hostname.

Calls need raw TCP and UDP traffic in addition to HTTPS, and a classic Ingress cannot carry that. The LiveKit SFU publishes these ports through the same ingress layer, as ClusterIP Services behind routes (never NodePorts):

PortProtocolPurpose
matrixRTC.sfu.exposedServices.rtcTcp.port (default 30001)TCPICE over TCP
matrixRTC.sfu.exposedServices.rtcMuxedUdp.port (default 30002)UDPICE over UDP, muxed
3478 (optional)UDPTURN relay (matrixRTC.sfu.exposedServices.turn.enabled)
5349 (optional)TCPTURN over TLS (matrixRTC.sfu.exposedServices.turnTLS.enabled)

LiveKit advertises each port to clients as its ICE candidate, so the port in the chart values must be the port your ingress controller listens on. Open the same ports in any firewall in front of the cluster.

Which route kind carries the raw ports depends on the controller:

  • TCPRoute and UDPRoute from the Gateway API, where your implementation supports them.
  • For Traefik without TCPRoute support, set global.gatewayApi.tcpRouteKind: IngressRouteTCP. UDP then uses IngressRouteUDP.

If two Vesicle installs share one cluster or one public address, give each its own pair of ports.

Terminate TLS on the Gateway or the Ingress. Vesicle expects HTTPS on every public hostname listed in DNS and hostnames.