# Node-Red on OpenShift

**URL:** <https://discourse.nodered.org/t/node-red-on-openshift/7136>\
**Category:** General\
**Created:** [22 January 2019 10:11 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136 "2019-01-22T10:11:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanT](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SeanT](https://discourse.nodered.org/u/SeanT)\
**Post date:** [22 January 2019 10:11 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/1 "2019-01-22T10:11:18Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [22 January 2019 10:17 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/2 "2019-01-22T10:17:18Z")

</div>

Could you post a link to what OpenShift is?

---

<div class="post-metadata">

**Author:** ![SeanT](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SeanT](https://discourse.nodered.org/u/SeanT)\
**Post date:** [22 January 2019 10:22 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/3 "2019-01-22T10:22:23Z")

</div>

> **[What is OpenShift - Red Hat OpenShift](https://www.openshift.com/learn/what-is-openshift/)**
>
> Red Hat OpenShift is the industry’s most secure and comprehensive enterprise-grade container platform based on industry standards, Docker and Kubernetes. Build, deploy, and scale on any infrastructure. OpenShift gives application teams a faster path...

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.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 January 2019 10:25 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/4 "2019-01-22T10:25:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SeanT](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SeanT](https://discourse.nodered.org/u/SeanT)\
**Post date:** [22 January 2019 10:36 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/5 "2019-01-22T10:36:34Z")

</div>

> [@ukmoose](#):
>
> Node-red install openshift

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.

---

<div class="post-metadata">

**Author:** ![SeanT](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SeanT](https://discourse.nodered.org/u/SeanT)\
**Post date:** [22 January 2019 14:39 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/6 "2019-01-22T14:39:09Z")

</div>

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.
```

---

<div class="post-metadata">

**Author:** ![sergiogama](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sergiogama/32/357_2.png) [@sergiogama](https://discourse.nodered.org/u/sergiogama)\
**Post date:** [7 August 2019 23:27 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/7 "2019-08-07T23:27:55Z")

</div>

Please elaborate better the step 2, 3 and 4.

Thaks.

---

<div class="post-metadata">

**Author:** ![sergiogama](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sergiogama/32/357_2.png) [@sergiogama](https://discourse.nodered.org/u/sergiogama)\
**Post date:** [7 August 2019 23:59 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/8 "2019-08-07T23:59:21Z")

</div>

I did thru deploying by catalog, node.js (v10)... After I changed YAML file on deployment "cointanerPort" to 1880, and YAML file on service "targetPort" to 1880.  
Thanks!

---

<div class="post-metadata">

**Author:** ![npersia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/npersia/32/17633_2.png) [@npersia](https://discourse.nodered.org/u/npersia)\
**Post date:** [28 February 2020 17:34 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/9 "2020-02-28T17:34:52Z")

</div>

Hi, i made many solutions for deploy nodered in OCP.

For examples check this repos:

This is my custom s2i for nodered

> **[npersia/nodered-s2i](https://github.com/npersia/nodered-s2i)**
>
> Contribute to npersia/nodered-s2i development by creating an account on GitHub.

This is my custom docker for OCP

> **[npersia/nodered](https://github.com/npersia/nodered)**
>
> Contribute to npersia/nodered development by creating an account on GitHub.

There are old versions, but you can get the idea!

---

<div class="post-metadata">

**Author:** ![gmodzelewski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gmodzelewski/32/72624_2.png) [@gmodzelewski](https://discourse.nodered.org/u/gmodzelewski)\
**Post date:** [15 December 2022 10:55 UTC](https://discourse.nodered.org/t/node-red-on-openshift/7136/10 "2022-12-15T10:55:58Z")

</div>

Or, you just use the IBM helm chart that is preconfigured in OpenShift.

- In your Developer view, click on "Add to Project"
- type "nodered"
- click on "Install Helm Chart"
- Change the storageclass name to your supported storageclass
- click on Install

and connect via exposing of the service (oc expose svc/node-red-svc)  
or via port forwarding (kubectl port-forward services/node-red-svc 8080:1880)

 ![Bildschirm­foto 2022-12-15 um 11.53.07](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/3/238420a2d3176f1a8a175fa717eb30cdfd355063.png)
