diff --git a/kubernetes-manifests/cartservice.yaml b/kubernetes-manifests/cartservice.yaml index d7200e5..70d5135 100644 --- a/kubernetes-manifests/cartservice.yaml +++ b/kubernetes-manifests/cartservice.yaml @@ -19,7 +19,7 @@ spec: - name: CART_SERVICE_PORT value: "7070" - name: CART_SERVICE_ADDR - value: "127.0.0.1" + value: "0.0.0.0" resources: requests: cpu: 200m diff --git a/src/checkoutservice/main.go b/src/checkoutservice/main.go index cea99d8..4f59ce1 100644 --- a/src/checkoutservice/main.go +++ b/src/checkoutservice/main.go @@ -184,7 +184,7 @@ func (cs *checkoutService) getUserCart(ctx context.Context, userID string) ([]*p cart, err := pb.NewCartServiceClient(conn).GetCart(ctx, &pb.GetCartRequest{UserId: userID}) if err != nil { - return nil, fmt.Errorf("failed to get user cart: %+v", err) + return nil, fmt.Errorf("failed to get user cart during checkout: %+v", err) } return cart.GetItems(), nil } diff --git a/src/frontend/port-forward-dependencies.sh b/src/frontend/port-forward-dependencies.sh index 137c997..4d7793d 100755 --- a/src/frontend/port-forward-dependencies.sh +++ b/src/frontend/port-forward-dependencies.sh @@ -6,6 +6,7 @@ kubectl port-forward $(kubectl get pods -l app=recommendationservice -o=name | h kubectl port-forward $(kubectl get pods -l app=cartservice -o=name | head -n 1) 7070:7070 & kubectl port-forward $(kubectl get pods -l app=productcatalogservice -o=name | head -n 1) 3550:3550 & kubectl port-forward $(kubectl get pods -l app=checkoutservice -o=name | head -n 1) 5050:5050 & +kubectl port-forward $(kubectl get pods -l app=shippingservice -o=name | head -n 1) 50051:50051 & set +x trap "exit" INT TERM ERR