This project deploys the Dynatrace easyTravel demo application on RedHat OpenShift.
Service | Description |
---|---|
easytravel-mongodb | A pre-populated travel database (MongoDB). |
easytravel-backend | The easyTravel Business Backend (Java). |
easytravel-frontend | The easyTravel Customer Frontend (Java). |
easytravel-www | A reverse-proxy for the easyTravel Customer Frontend (NGINX). |
easytravel-loadgen | A synthetic load generation component to generate traffic on the application and optionally generate problems based on a set of problem patterns |
- Access to an OpenShift environment is required. If you don't have a cluster up and running and are unsure on how to set one up, you can use one of the options here: https://developers.redhat.com/products/openshift/download.
- The OpenShift CLI has to be installed.
- Access to a Dynatrace tenant. If you don't have access to a tenant, you can get a trial instance here - https://www.dynatrace.com/signup/
- For configuring Dynatrace to monitor OpenShift, refer to Setting up Dynatrace for OpenSHift
Login to the Openshift cluster
oc login -u <user> -p <password> --insecure-skip-tls-verify <Openshift API URL>:6443
and grant rights by running:
oc new-project easytravel
oc adm policy add-role-to-user cluster-admin <user> -n easytravel
oc adm policy add-scc-to-user anyuid -z default -n easytravel
Deploy the easyTravel app on OpenShift by:
oc create -f templates/easytravel-deployment.yml
oc new-app dynatrace-easytravel
You can clean up by:
oc delete project easytravel
Using the template YAML under templates/easytravel-deployment.yml, a route for the easytravel app is already created for you.
For manually configuring a route, here'w what you can do:
- Configure a route in OpenShift to expose easyTravel services to the public (provided you have configured a domain for OpenShift).
With the easytravel-www
service being exposed, you can apply synthetic load using the UEM Load Generator component.
oc scale dc easytravel-loadgen --replicas=1
By additionally exposing the easytravel-backend
service and providing its URL through ET_BACKEND_URL
, the UEM Load Generator component will continually apply problems from an initial set of easyTravel problem patterns, as described here.
oc set env dc/easytravel-loadgen ET_BACKEND_URL=http://easytravel-www:8080 ET_PROBLEMS=LoginProblems -n easytravel
Please refer to the following Dynatrace documentation to get started with observability of your OpenShift cluster and workloads on your cluster:
Licensed under the MIT License. See the LICENSE file for details.