You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Resourceclaim within the application namespace using the information that you can grab from commands tanzu service types list and tanzu service instances list -A such as APIVERSION, Kind, namespace and service name
Postgres/postgres-db within the namespace (e.g demo-4): Yes
ResourceClaimPolicy/postgres-db-cross-namespace within the DB namespace: Yes
ResourceClaim within the application namespace: Yes
Results:
Wait and check the workload's deployment using these commands:
APP=spring-tap-petclinic
tanzu apps -n demo-3 workload get $APP
## Get the URL of the service and open the URL in your browser
kc get ksvc/$APP -n demo-3 -o json | jq .status.address.url
Resources checked and their result:
kc get ClusterResource/postgresql: YES
kc get Postgres/postgres-db -n demo-4: YES
kc get resourceclaim -n demo-3: YES
kc get ResourceClaimPolicy/postgres-db-cross-namespace -n demo-4YES
Conclusion
The Spring Boot Petclinic Application has been well deployed, the URL of the service is accessible.
A Resourceclaim has been needed to be created.
The Resourceclaim has been used to bind the DB (running in a separate namespace) with the Knative Service.
Question: As the Config Template executed by the step app-config of the supplychain source-to-url includes the logic to populate a ResourceClaim, why do we have then to create a ResourceClaim manually - see code ?
Scenario
Title: Spring Boot Petclinic application and postgresql are running in DIFFERENT namespaces.
Reference: TAP documentation to play the different scenario using RabbitMQ - here
Steps:
ResourceClaimPolicy
within the namespace hosting the DBResourceclaim
within the application namespace using the information that you can grab from commandstanzu service types list
andtanzu service instances list -A
such asAPIVERSION
,Kind
,namespace
andservice name
ResourceClaimReference
and pass it to the workloadExpected
Results:
Wait and check the workload's deployment using these commands:
Resources checked and their result:
kc get ClusterResource/postgresql
: YESkc get Postgres/postgres-db -n demo-4
: YESkc get resourceclaim -n demo-3
: YESkc get ResourceClaimPolicy/postgres-db-cross-namespace -n demo-4
YESConclusion
The Spring Boot Petclinic Application has been well deployed, the URL of the service is accessible.
A Resourceclaim has been needed to be created.
The Resourceclaim has been used to bind the DB (running in a separate namespace) with the Knative Service.
See the SBO spec section
Question: As the
Config Template
executed by the stepapp-config
of the supplychainsource-to-url
includes the logic to populate aResourceClaim
, why do we have then to create a ResourceClaim manually - see code ?To cleanup
The text was updated successfully, but these errors were encountered: