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/v1
kind: Ingress
metadata:
name: test-ingress
namespace: default
spec:
rules:
- host: one.example.com
http:
port: '8989'
paths:
- path: /admin
backend:
service:
name: admin-service
port:
number: 80
- path: /
backend:
service:
name: test-service
port:
number: 80
- host: other.example.com
http:
port: '8989'
paths:
- backend:
service:
name: other-service
port:
number: 80
- host: one.example.com
http:
port: '4343'
paths:
- backend:
service:
name: test-service
port:
number: 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
tcprules listening to same port, even if they do not have samehost.Different hosts can use the same port for
httprules






