- forward the ordermanager port to local port 10001
- forward the shopping-checkout port to local port 10002
The example command is as follows:
# change pod name accordingly, it will be changed after each deployment.
kubectl port-forward -n ordermanager pod/ordermanager-cffd48745-l99ml 10001:9281
kubectl port-forward -n shopping-checkout pod/shopping-checkout-85bc4c64b7-t4fcz 10002:9281
- Change the order id in the main.go file
- Run the program with the following command:
go run main.go