Skip to content

Commit

Permalink
update hotel
Browse files Browse the repository at this point in the history
  • Loading branch information
Romero027 committed Sep 14, 2024
1 parent 469b12e commit c18d71d
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 9 deletions.
1 change: 0 additions & 1 deletion config/samples/hotel/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
### Preparation

```bash
sed -i 's|<docker-username>|<your-docker-user-name>|g' config/samples/hotel/hotel_reservation.yaml
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/hotel/sample_hotel.yaml
```

Expand Down
80 changes: 72 additions & 8 deletions config/samples/hotel/hotel_reservation.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: user
name: hotel-user
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -46,7 +53,8 @@ spec:
containers:
- command:
- ./user
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-user
imagePullPolicy: Always
name: hotel-reserv-user
ports:
Expand All @@ -60,6 +68,13 @@ spec:
restartPolicy: Always
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: search
name: hotel-search
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -107,7 +122,8 @@ spec:
containers:
- command:
- ./search
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-search
imagePullPolicy: Always
name: hotel-reserv-search
ports:
Expand All @@ -122,6 +138,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: reservation
name: hotel-reservation
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -169,7 +192,8 @@ spec:
containers:
- command:
- ./reservation
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-reservation
imagePullPolicy: Always
name: hotel-reserv-reservation
ports:
Expand All @@ -184,6 +208,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: recommendation
name: hotel-recommendation
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -231,7 +262,8 @@ spec:
containers:
- command:
- ./recommendation
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-recommendation
imagePullPolicy: Always
name: hotel-reserv-recommendation
ports:
Expand All @@ -246,6 +278,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: rate
name: hotel-rate
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -293,7 +332,8 @@ spec:
containers:
- command:
- ./rate
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-rate
imagePullPolicy: Always
name: hotel-reserv-rate
ports:
Expand All @@ -308,6 +348,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: profile
name: hotel-profile
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -355,7 +402,8 @@ spec:
containers:
- command:
- ./profile
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-profile
imagePullPolicy: Always
name: hotel-reserv-profile
ports:
Expand All @@ -370,6 +418,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: geo
name: hotel-geo
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -417,7 +472,8 @@ spec:
containers:
- command:
- ./geo
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-geo
imagePullPolicy: Always
name: hotel-reserv-geo
ports:
Expand All @@ -432,6 +488,13 @@ spec:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
account: frontend
name: hotel-frontend
---
apiVersion: v1
kind: Service
metadata:
annotations:
Expand Down Expand Up @@ -480,7 +543,8 @@ spec:
containers:
- command:
- ./frontend
image: xzhu0027/hotelreservation:latest
image: appnetorg/hotelreservation:latest
serviceAccountName: hotel-frontend
imagePullPolicy: Always
name: hotel-reserv-frontend
ports:
Expand Down

0 comments on commit c18d71d

Please sign in to comment.