-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional NodePort change every second #826
Comments
I can confirm that it happens for me as well. Operator's logs show that it keeps reconciling the services which explains why a new port is getting assigned over and over. While I agree that this shouldn't happen, can you please explain your use case to help us prioritize this issue? Why do need the additional port? |
@mkuratczyk I want to set static ports for STOMP and AMQP NodePort. |
You don't need any overrides for that. This is sufficient and works correctly for me:
|
@mkuratczyk yes but I want to specify the port number because it will be changed after redeploying the cluster. |
Ok, until we fix this issue, I can suggest two workarounds:
Also, for our better understanding - can you explain why you need to rely on NodePorts? I guess you hit this issue because NodePorts are rarely used (statically assigning ports to services doesn't sounds like fun), so it'd help us if we knew when people rely on them. Thank you, |
@mkuratczyk Thank you so much for your help. We use NodePort for connecting our applications to the cluster located in the Kubernetes cluster for debugging, so we want a static port to prevent change the code. |
This issue has been marked as stale due to 60 days of inactivity. Stale issues will be closed after a further 30 days of inactivity; please remove the stale label in order to prevent this occurring. |
In our case we are using a sandbox dev deployment with minikube and rabbitmq. Running on windows using miniport and NodePort you can easily setup the dev environment against A similar use case as with @soleimaniamir |
Had a use case where we were trying to run the rabbitmq operator in locally in k3d - initially tried to get it working with nodeports like this to get a consistent port for our devs but ended up using type: LoadBalancer instead. |
I suggest adding such a function port:
|
Its a better idea to use k8s dns for testing or even production apps. They are static in namespace and whole cluster so any app can use it easily. NodePort usage is when want clients out of cluster connect to apps directly. Opening NodePorts for even development is not safe because it opens port on all nodes of cluster and anyone can access it. |
Sometimes such functionality is necessary and it would be great if it were |
Hello,
I'm using the RabbiMQ operator to running RabbitMQ on the Kubernetes cluster.
This is my definition.yaml:
after applying this definition, the additional-port that was exposed from the cluster changed every second:


The text was updated successfully, but these errors were encountered: