commit | author | age
|
1264f7
|
1 |
# Currency Exchange application |
MC |
2 |
|
|
3 |
This application serves as an example of multi-service application. It consists of the following services: |
|
4 |
|
|
5 |
- History |
|
6 |
- Currency |
|
7 |
- Exchange (Gateway) |
|
8 |
- Frontend |
|
9 |
|
|
10 |
![Image of the application](imgs/app.png) |
|
11 |
|
|
12 |
|
|
13 |
## Deployment |
|
14 |
|
|
15 |
Note that this application template is written for OpenShift Service Mesh. |
|
16 |
The project where you deploy this application should be managed by OSSM |
|
17 |
(i.e. be in the ServiceMeshMemberRoll resource). |
|
18 |
|
2bcf3e
|
19 |
If you want to use the news endpoint, provide the `NEWS_ENABLED` |
MC |
20 |
variable in the template. |
|
21 |
|
1264f7
|
22 |
Also note there is no `http://` in the `INGRESS_GW` parameter. Protocol |
MC |
23 |
is added by the frontend application. |
|
24 |
|
|
25 |
To deploy this application, execute: |
|
26 |
|
|
27 |
```sh |
2bcf3e
|
28 |
oc process -o yaml -f kubefiles/app-template.yml \ |
1264f7
|
29 |
-p INGRESS_GW=ingress-gateway.istio-system-app.apps.example.com \ |
MC |
30 |
-p NEWS_ENDPOINT=url \ |
2bcf3e
|
31 |
| oc create -f - |
1264f7
|
32 |
``` |