This repository contains artifacts necessary to build and run generative AI applications using Spring Boot and Tanzu Platform. The instructions below cover setup for both Cloud Foundry (cf) and Kubernetes (k8s) environments.
- Ensure you have the latest version of the Tanzu CLI installed.
- Access to a Route53 domain and necessary AWS permissions.
- Update the parameters in
demo.sh
according to your TPCF and TPK8s configurations - Follow the getting started guides for TPK8s
cf login -u admin -p YOUR_CF_ADMIN_PASSWORD
cf target -o YOUR_ORG -s YOUR_SPACE # this space must have access to postgres and genai services
./demo.sh prepare-cf
./demo.sh prepare-k8s
- cf runtime
cf login -u admin -p YOUR_CF_ADMIN_PASSWORD
cf target -o YOUR_ORG -s YOUR_SPACE
./demo.sh deploy-cf
- k8s runtime
tanzu login
tanzu context use <my-context>
tanzu project use <my-project>
tanzu space use <my-space>
tanzu deploy
note: AI and db external services are bound as part of the deployment. You can bind to on-cluster services by using tanzu service create
./demo.sh cleanup-k8s #removes app and services from TPK8s space, but keep the space and its ingress/egress
./demo.sh cleanup-cf #removes app and services from TPCF space
- Solution: In AppsMan->YOUR_SPACE->services->vector db instance->settings: manually enter
"svc_gw_enable":true
in the json area and redeploy
Contributions to this project are welcome. Please ensure to follow the existing coding style and add unit tests for any new or changed functionality.