page_type | languages | products | description | urlFragment | |||||
---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Deploy Microservice Apps to Tanzu Application Platform |
acme-fitness-store |
This application is composed of several services:
-
3 Java Spring Boot applications
- A catalog service for fetching available products
- A payment service for processing and approving payments for users' orders
- An identity service for referencing the authenticated user
-
1 Python application
- A cart service for managing a users' items that have been selected for purchase
-
1 ASP.NET Core applications
- An order service for placing orders to buy products that are in the users' carts
-
1 HTML and Javascript application
- A frontend shopping application
Before deploying Acme Fitness Store to TAP, the prerequisites listed in the TAP 1.2 Getting Started Guide must be met.
The following Kubernetes operators must be installed in the target cluster:
The following tools must be installed locally:
The Tanzu Postgres for Kubernetes Operator requires some additional setup in each Kubernetes namespace where a Postgres database instance will be created, as described in the documentation. You will need a username and password for the image registry where the Tanzu Postgres images are stored. Once you have those credentials, run the following scripts to complete this setup:
TANZU_REGISTRY_USERNAME=username TANZU_REGISTRY_PASSWORD=secret ./scripts/create-tanzu-registry-secret.sh
./scripts/create-postgres-service-biding-rbac.sh
Scripts in the deploy/tap
directory can be used to deploy the Acme Fitness Store applications.
First, run deploy-servers.sh
to deploy shared infrastructure services that are used by the applications.
Then, run deploy-workloads.sh
to deploy the applications.