I have a NodeJS API that sits behind a Nginx reverse proxy and connects to a Redis instance. To deploy this on to OpenShift cluster, I need the following:
- Nginx image e.g. registry.access.redhat.com/rhscl/nginx-114-rhel7
- Redis image e.g. registry.redhat.io/rhel8/redis-5
- NodeJS code hosted on GitHub
I am not sure if OpenShift Operators and Helm Charts are the right choice - they sound like an overkill (or, are they?). Then, there are YAML based installations e.g. Strimzi on OpenShift.
Given a OpenShift cluster with oc
installed, perhaps, there is yet another way; where, all of the following commands are wrapped in a shell script.
git clone https://github.com/me/nodejsapi
oc new-project awesome
# Trigger S2I for NodeJS
cd nodejsapi
oc new-app .
# New applications with nginx image
oc import ...
# New applications with redis image
oc import ...
# New config map set-up through [OpenShift APIs][6]
curl ...
Can you please advise the suitable approach to install the NodeJS application and others?