A simple distributed application running across multiple Pods.
Make sure you have an OpenShift cluster running
First create the vote namespace
$ oc new-project vote
Run the following command to create the deployments and services objects:
$ oc create -f vote-app.yml
deployment "db" created
service "db" created
deployment "redis" created
service "redis" created
deployment "result" created
service "result" created
deployment "vote" created
service "vote" created
deployment "worker" created
- A front-end web app in Python which lets you vote between two options
- A Redis queue which collects new votes
- A Java or .NET Core 2.1 worker which consumes votes and stores them in…
- A Postgres database backed by a Persistent volume
- A Node.js webapp which shows the results of the voting in real time
The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.