Skip to content

joostvdg/spring-boot-postgres

Repository files navigation

spring-boot-postgres

Demo project for Spring Boot with Postgresql & Service Bindings

Test

Test 5

Docker Postgresql

docker run --name postgres -e POSTGRES_PASSWORD=admin -p 5432:5432 -d postgres

Test Application

 http :8080
http POST :8080/create name=Andrea

Create Workload

 tanzu apps config create spring-boot-postgres-01 \
  --namespace default \
  --git-repo https://github.com/joostvdg/spring-boot-postgres.git \
  --git-branch main \
  --type web \
  --label app.kubernetes.io/part-of=spring-boot-spring-01 \
  --build-env BP_JVM_VERSION=17 \
  --yes
tanzu apps config create spring-boot-postgres-01 \
  --namespace default \
  --git-repo https://github.com/joostvdg/spring-boot-postgres.git \
  --git-branch main \
  --type web \
  --label app.kubernetes.io/part-of=spring-boot-spring-01 \
  --annotation autoscaling.knative.dev/minScale=1 \
  --build-env BP_JVM_VERSION=17 \
  --service-ref db=services.apps.tanzu.vmware.com/v1alpha1:ResourceClaim:azure-psql-claim-01 \
  --yes

About

Demo project for Spring Boot with Postgresql & Service Bindings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published