-
Notifications
You must be signed in to change notification settings - Fork 3
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
TLS and WebSocket support in NodeRED instance Ingress (the one created by kubernetes.js) #83
Comments
Hello, We haven't had a need for the either of these just yet with the configurations we've been running with. All the ingress controllers have automatically worked with WebSockets without the need for an annotation. And for the TLS we have configured the controller to redirect all traffic to the https port and we've been doing TLS termination at the Ingress Controller with a wildcard certificate, so no need for the I hope to merge some changes in the next release that will allow the specifying of extra annotations to make ingress objects which would include the first point. I'll have a think about the options for setting |
Hi, WebSocket: I am not familiar with all Ingress controllers but Nginx from Nginx (CE edition). And this one requires the annotation to be present in order to support the WS connections. Without the annotation the NodeRED applications complain on failed WS connections. TLS: I understand that it may work in the scenario you mention. However, in our environment (and I believe we wouldn't be alone) the TLS section needs to be explicitly configured for every Ingress in every namespace. We cannot reconfigure the environment to work as you describe. Could I perhaps hope that you might consider these suggestions in any near future, or would you appreciate a pull request, that I would take care of, or would you rather suggest that we make our own patch? Thanks, |
I was having this same issue with websockets, and by adding the annotation for nginx.org/websocket-services into the ingress for the node-red service fixed the issue. So I think there is something needed here. |
@dfulgham You can pass additional ingress annotations as part of the helm install by setting the value These should be added to all the instance ingress objects that are created. |
Hi, I would like to refresh and bring to your attention that my comment (and I believe the one from @dfulgham too) referred to the NodeRED instance ingress created by kubernetes.js, not the Flowforge ingress created by helmchart. |
@adaptivegarage those annoations also get added to both, they are added to the ingress template for the forge app here and get added as an environment variable here which is then picked up by the kubernetes driver here |
Oh, I see. Thanks a lot, I'll give it a try. |
Yes, TLS entries do still need looking at. There will be some overlap with some other work we need to look at soon to potentially support custom hostname/domains for instances. |
Cert-Manager TLS support to be added via #131 |
Hi,
is there any reason that I might be overlooking in
kubernetes.js
for not to support TLS and WebSocket iningressTemplate
andcreateIngress
?In order to get the NodeRED instances working on a K8s cluster one would need to adjust the two mentioned somehow along these lines:
The text was updated successfully, but these errors were encountered: