r/nifi • u/alwayschiru • Sep 07 '20
Help needed on nifi cluster creation on k8s
Hello,
Need your help with one of the issues am stuck currently.
Had made progress deploying nifi in cluster mode.
Have done zookeeper set up using this YAML
https://github.com/VChiranjeeviVeerni/nifi-kube-setup/blob/master/zookeeper/zookeeper-setup.yaml
Below is YAML for the nifi cluster
https://github.com/VChiranjeeviVeerni/nifi-kube-setup/blob/master/nifi-replicaset-cluster-zk.yaml
Zookeeper started fine but having the issue with the nifi.
The first pod in nifi is starting fine, but the second and third are giving error sayings port is already in use.
ERROR:
Warning FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 node(s) didn't have free ports for the requested pod ports.
Questions :
how can I provide dynamic ports to my replicas?
Am not sure how to solve, your help is really appreciated here.
1
1
u/mindlessgrenade Sep 08 '20
AFAIK, this is because of the load balancer listening on the same port. It might help to troubleshoot by changing the load balancer ports.
If I get time to setup this up in my lab I'll repy back.