Node-Red on OpenShift

#1

Can anyone help with documentation on how to deploy NR on OpenShift.

Thanks

0 Likes

#2

Could you post a link to what OpenShift is?

0 Likes

#3

OpenShift is an on-premises platform as a service built around Docker containers orchestrated and managed by Kubernetes on a foundation of Red Hat Enterprise Linux.

1 Like

#4

Have you tried the top answer when googling "Node-red install openshift" ?

0 Likes

#5

I have. This talks to the installation of the container platform. What I need to understand is how to deploy NR on the platform, which is already up and running. Customisation of the package.json and server.js files is required and I'm hoping that someone who has done this before can steer me in the right direction.

0 Likes

#6

Assuming that the OpenShift account is active and a new project has been started, the solution to this is as follows:

1) A Node-Red Docker image can be pulled from DockerHub at https://hub.docker.com/r/nodered/node-red-docker/
2) Deploying it just like that would cause a crash loop, as it can't write to the /data directory. In order to cater for that, attach persistent storage to the deployment configuration and mount it to the /data directory.
3) Then the deployment strategy must be changed from rolling to recreate.
4) Create a new Route and the NR page will be publicly visible.
0 Likes