From 7d1d1d66140071b45b7b0f6a4e625b5b6cdc6e9a Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Fri, 22 Jun 2018 09:12:41 -0700 Subject: [PATCH] checkoutservice: activate cartservice link Signed-off-by: Ahmet Alp Balkan --- kubernetes-manifests/checkoutservice.yaml | 5 ++++- src/checkoutservice/main.go | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/kubernetes-manifests/checkoutservice.yaml b/kubernetes-manifests/checkoutservice.yaml index dcdbc5b..fabc611 100644 --- a/kubernetes-manifests/checkoutservice.yaml +++ b/kubernetes-manifests/checkoutservice.yaml @@ -3,7 +3,6 @@ kind: Deployment metadata: name: checkoutservice spec: - replicas: 1 template: metadata: labels: @@ -23,6 +22,10 @@ spec: value: "paymentservice:50051" - name: EMAIL_SERVICE_ADDR value: "emailservice:5000" + - name: CURRENCY_SERVICE_ADDR + value: "currencyservice:7000" + - name: CART_SERVICE_ADDR + value: "cartservice:9999" --- apiVersion: v1 kind: Service diff --git a/src/checkoutservice/main.go b/src/checkoutservice/main.go index 93a2e3f..65d976c 100644 --- a/src/checkoutservice/main.go +++ b/src/checkoutservice/main.go @@ -37,11 +37,11 @@ func main() { svc := new(checkoutService) mustMapEnv(&svc.shippingSvcAddr, "SHIPPING_SERVICE_ADDR") - // mustMapEnv(&svc.productCatalogSvcAddr, "PRODUCT_CATALOG_SERVICE_ADDR") - // mustMapEnv(&svc.cartSvcAddr, "CART_SERVICE_ADDR") - // mustMapEnv(&svc.currencySvcAddr, "CURRENCY_SERVICE_ADDR") - // mustMapEnv(&svc.emailSvcAddr, "EMAIL_SERVICE_ADDR") - // mustMapEnv(&svc.paymentSvcAddr, "PAYMENT_SERVICE_ADDR") + mustMapEnv(&svc.productCatalogSvcAddr, "PRODUCT_CATALOG_SERVICE_ADDR") + mustMapEnv(&svc.cartSvcAddr, "CART_SERVICE_ADDR") + mustMapEnv(&svc.currencySvcAddr, "CURRENCY_SERVICE_ADDR") + mustMapEnv(&svc.emailSvcAddr, "EMAIL_SERVICE_ADDR") + mustMapEnv(&svc.paymentSvcAddr, "PAYMENT_SERVICE_ADDR") log.Printf("service config: %+v", svc)