You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.

New to Voyager? Please start here.

Custom HTTP Port

Voyager 3.2+ supports using any non-standard port (beyond 80 and 443) for L7 traffic. If no port is specified, port 80 or 443 will be used depending on whether TLS is used or not.

apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
  name: test-ingress
  namespace: default
spec:
  rules:
  - host: one.example.com
    http:
      port: '8989'
      paths:
      - path: /admin
        backend:
          serviceName: admin-service
          servicePort: '80'
      - path: /
        backend:
          serviceName: test-service
          servicePort: '80'
  - host: other.example.com
    http:
      port: '8989'
      paths:
      - backend:
          serviceName: other-service
          servicePort: '80'
  - host: one.example.com
      http:
        port: '4343'
        paths:
        - backend:
            serviceName: test-service
            servicePort: '80'

For this configuration, the loadbalancer will listen to 8989 and 4343 port for incoming HTTP connections, and will pass any request coming to it to the desired backend.

Restrictions:

  • For one Ingress resource you cannot have multiple tcp rules listening to same port, even if they do not have same host.

  • Different hosts can use the same port for http rules