1.5 Uptime app
In this lab you’re going to deploy an application on your freshly-installed OpenShift cluster.
The application’s availability will be monitored and recorded by an external monitoring system. Your main goal for the rest of this training is to keep this application up and running, no matter what you do.
Note
At any time you can view the availability of your cluster console and the uptime app on this dashboard. Credentials to login will be provided by your trainers.Uptime app
The application you’re going to install is a simple Python app. It’s going to be scaled to 2 replicas in order to achieve high availability.
Task 1.5.1: Deploy the uptime app
First you need to create a new project named uptime-app-prod for the application.
Hints
oc new-project uptime-app-prod
Next, you’re going to create the following resources:
- Deployment
- Service
- Route
To deploy these resources, you can simply execute the following command:
oc apply -f https://raw.githubusercontent.com/acend/openshift-operations-training/main/content/en/docs/01/resources/uptime-app.yaml -n uptime-app-prod
The deployed application should now be available at https://uptime-app-uptime-app-prod.apps.+username+-ops-training.openshift.ch .
With 2 replicas and the Pod anti-affinity , which will make sure all 2 Pods are never deployed on the same underlying node, we have a good setup for the training to continue.