Configuring arbitrary connections
Learn about configuring a connections array.
You can use the connections array to flexibly define routing to ports on NiFi. The below example configures an Ingress resource with some annotations and labels provided. The Ingress will expose a URL https://nifi.io/listenTCP which routes to port 9432 on NiFi. Additionally, the backing Service is configured to have two extra ports, 8496 and 8495.
spec:
connections:
- type: Ingress
name: someConnection
annotations:
someanno: myanno
labels:
somelabel: mylabel
ingressConfig:
hostname: nifi.io
paths:
- port: 9432
path: /listenTCP
name: listentcp
serviceConfig:
ports:
- port: 8496
protocol: TCP
name: porta
- port: 8495
protocol: UDP
name: portb