commit | author | age
|
4adf83
|
1 |
# Adopt a Pup Application |
PSV |
2 |
|
5ddca5
|
3 |
This application consists of the following services: |
4adf83
|
4 |
|
5ddca5
|
5 |
- Adoption |
PSV |
6 |
- Animal |
|
7 |
- Email |
|
8 |
- Frontend |
|
9 |
- Notification |
|
10 |
- Shelter |
4adf83
|
11 |
|
5ddca5
|
12 |
## Deployment |
4adf83
|
13 |
|
5ddca5
|
14 |
Note that this application is written for OpenShift Service Mesh. |
PSV |
15 |
The project where you deploy this application should be managed by OSSM |
|
16 |
(i.e. be in the ServiceMeshMemberRoll resource). |
bae328
|
17 |
|
14204b
|
18 |
1. Create a project for the news service. |
PSV |
19 |
|
|
20 |
``` |
|
21 |
oc new-project comprehensive-review-news |
|
22 |
``` |
|
23 |
|
|
24 |
2. Deploy the news service. |
|
25 |
``` |
|
26 |
oc apply -f kubefiles/news-service.yaml |
|
27 |
``` |
|
28 |
|
|
29 |
3. Create a project for the Adopt a Pup application. |
5ddca5
|
30 |
``` |
PSV |
31 |
oc new-project comprehensive-review |
|
32 |
``` |
bae328
|
33 |
|
14204b
|
34 |
4. Add the project to the list of SMMR members. |
60c173
|
35 |
``` |
PSV |
36 |
oc edit smmr -n istio-system |
|
37 |
``` |
|
38 |
|
|
39 |
The list of members should look like: |
|
40 |
``` |
|
41 |
... |
|
42 |
spec: |
|
43 |
members: |
|
44 |
- comprehensive-review |
|
45 |
... |
|
46 |
``` |
14204b
|
47 |
|
PSV |
48 |
5. Deploy the MongoDB container. |
5ddca5
|
49 |
``` |
PSV |
50 |
sh scripts/deploy-mongo.sh |
|
51 |
``` |
|
52 |
|
|
53 |
See the script [parameters](scripts/deploy-mongo.sh) to customize the data import. |
bae328
|
54 |
|
14204b
|
55 |
6. Populate the MongoDB database. |
5ddca5
|
56 |
``` |
PSV |
57 |
sh scripts/populate-mongo.sh |
|
58 |
``` |
|
59 |
See the script [parameters](scripts/populate-mongo.sh) to customize the deployment. |
bae328
|
60 |
|
14204b
|
61 |
7. Deploy the backend services. |
5ddca5
|
62 |
``` |
PSV |
63 |
oc apply -f kubefiles/adoption-service.yaml |
|
64 |
oc apply -f kubefiles/animal-service.yaml |
|
65 |
oc apply -f kubefiles/notification-service.yaml |
|
66 |
oc apply -f kubefiles/shelter-service.yaml |
|
67 |
``` |
bae328
|
68 |
|
14204b
|
69 |
8. Deploy the frontend. |
5ddca5
|
70 |
``` |
14204b
|
71 |
sh scripts/deploy-frontend.sh |
PSV |
72 |
``` |
5ddca5
|
73 |
See the script [parameters](scripts/deploy-frontend.sh) to customize the deployment. |