A test app for simulating the workload on the openshift cluster based on end-user use cases in order to monitor the downtime of component products in integreatly during an upgrade.
The app works for both RHMI 1.x and RHMI 2.x clusters. To deploy the webapp on your cluster:
To deploy the app to a RHMI 1.x cluster, you will need to:
- Login to the RHMI 1.x cluster using
oc login
command - Set the following environment variables:
# These env vars are required export RHMI_V1=true export USERSSO_NAMESPACE=<user sso namespace> export THREESCALE_NAMESPACE=<3scale namespace> export AMQONLINE_NAMESPACE=<amqonline namespace> # This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard export GRAFANA_DASHBOARD=true
- Then run this command to deploy the app:
make local/deploy
To deploy the app to a RHMI 2.x cluster, you will need to:
- Login to the RHMI 2.x cluster using
oc login
command - Set the following environment variables:
# This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard export GRAFANA_DASHBOARD=true
- Then run this command to deploy the app:
make local/deploy
To deploy the app to a RHOAM cluster, you will need to:
- Login to the RHOAM cluster using
oc login
command - Set the following environment variables:
# Mandatory env var. If not set, assuming it is false - deploying for RHMI installation type. export RHOAM=true # This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard export GRAFANA_DASHBOARD=true
- Sandbox RHOAM only. Export an additional envar to switch web-app into a multitenant-managed-api compliant mode:
export SANDBOX=true
- Then run this command to deploy the app:
make local/deploy
To delete the app, run:
make local/undeploy
Note: It might take up to 15 minutes for 3scale to fully remove the service (Product) hence you need to wait this long after undeploy if you want to deploy the workload-web-app again. In case the service is not fully removed yet the deployment fails with System name has already been taken
error.