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)