From c18d71df7e9dc82fdbbdd2c10489070bd9dd30cf Mon Sep 17 00:00:00 2001 From: Xiangfeng Zhu Date: Fri, 13 Sep 2024 20:56:29 -0400 Subject: [PATCH] update hotel --- config/samples/hotel/README.md | 1 - config/samples/hotel/hotel_reservation.yaml | 80 ++++++++++++++++++--- 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/config/samples/hotel/README.md b/config/samples/hotel/README.md index ea319f6..9ab605a 100644 --- a/config/samples/hotel/README.md +++ b/config/samples/hotel/README.md @@ -1,7 +1,6 @@ ### Preparation ```bash -sed -i 's|||g' config/samples/hotel/hotel_reservation.yaml sed -i 's||'"$(pwd)"'|g' config/samples/hotel/sample_hotel.yaml ``` diff --git a/config/samples/hotel/hotel_reservation.yaml b/config/samples/hotel/hotel_reservation.yaml index 25803a0..ab94bb0 100644 --- a/config/samples/hotel/hotel_reservation.yaml +++ b/config/samples/hotel/hotel_reservation.yaml @@ -1,4 +1,11 @@ apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: user + name: hotel-user +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -60,6 +68,13 @@ spec: restartPolicy: Always --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: search + name: hotel-search +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -122,6 +138,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: reservation + name: hotel-reservation +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -184,6 +208,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: recommendation + name: hotel-recommendation +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -246,6 +278,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: rate + name: hotel-rate +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -308,6 +348,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: profile + name: hotel-profile +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -370,6 +418,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: geo + name: hotel-geo +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: @@ -432,6 +488,13 @@ spec: status: {} --- apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + account: frontend + name: hotel-frontend +--- +apiVersion: v1 kind: Service metadata: annotations: @@ -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: