| Service | Description |
|---|---|
| api-gateway | Used as an entry point for clients to communicate with the rest of the application. It's built as RESP API and uses JSON for communication. |
| cart | Stores the products and their quantity in the shopping cart by sessionId and allowes to retrieve them. |
| checkout | Retrieves user cart, prepares order and charges user provided card. |
| currency | Provides a list of supported currencies and makes a conversion from one currency to another. |
| payment | Charges provided debet/credit card with the given amount (mock) and return a transaction ID for reference. |
| products | Allows getting list of products and individual products by ID. |
| shipping | Provides shipping cost estimates based on the shopping cart (mock). Ships items to the given address and returns tracingId (mock). |
- Docker for Desktop
kubectlskaffold- Minikube / kind
- Launch a local k8s cluster
minikube start --cpus='2' --memory='3.9g'orkind create cluster. - Verify the cluster is operating
minikube statusand it's possible to connect to control planekubectl get nodes. - Run
skaffold runorskaffold dev. This will build and deploy the application. Ifskaffold devis used it will rebuild the images automatically as you change the code. - Run
kubectl get podsto verify that the Pods are operating well. - Run
kubectl port-forward svc/api-gateway-service 8080:8080to forward a port to the api-gateway service. - Use
localhost:8080to access the api-gateway service.
- Use
skaffold deleteif you usedskaffold runor just stopskaffold devby pressingctrl+c. - Run
minikube stopto stop Minikube cluster orminikube deleteto delete it.