Let's deploy nginx!
We'll create a Deployment, a Service and a Route. 🥔🥔
- We create a Deployment to run the
nginx-unprivileged
image (this Nginx image doesn't run nginx as root - because OpenShift doesn't like that!) - We create a Service which load balances between the pods in the Deployment.
- We create a Route which forwards traffic onto the Service, and the Pods!
Add each of these YAMLs to the cluster, using the web console or using oc apply -f <filename.yml>
.
And.... VOILA.