Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
0pens0 committed Aug 21, 2024
1 parent d1790bf commit 808621c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ README.html
conf/external-services/genai-service-binding.yml
conf/external-services/postgres-service-binding.yml
demo.sh
.tanzu/config/genai-service-binding.yml
.tanzu/config/httproute.yml
.tanzu/config/postgres-service-binding.yml
.tanzu/config/spring-metal.yml
26 changes: 22 additions & 4 deletions .tanzu/config/genai-service-binding.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
apiVersion: services.tanzu.vmware.com/v1
kind: ServiceBinding
metadata:
name: genai-service-bind
name: genai-chat-spring-metal-openso
namespace: default
spec:
alias: ai
alias: ai-chat
serviceRef:
apiGroup: services.tanzu.vmware.com
connectorName: main
kind: PreProvisionedService
name: genai
name: genai-chat
targetRef:
apiGroup: apps.tanzu.vmware.com
kind: ContainerApp
name: spring-metal
name: spring-metal-openso

---
apiVersion: services.tanzu.vmware.com/v1
kind: ServiceBinding
metadata:
name: genai-embed-spring-metal-openso
namespace: default
spec:
alias: ai-embed
serviceRef:
apiGroup: services.tanzu.vmware.com
connectorName: main
kind: PreProvisionedService
name: genai-embed
targetRef:
apiGroup: apps.tanzu.vmware.com
kind: ContainerApp
name: spring-metal-openso
8 changes: 4 additions & 4 deletions .tanzu/config/httproute.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: spring-demo-openso
name: spring-metal-openso
annotations:
healthcheck.gslb.tanzu.vmware.com/service: spring-metal
healthcheck.gslb.tanzu.vmware.com/service: spring-metal-openso
healthcheck.gslb.tanzu.vmware.com/path: /
healthcheck.gslb.tanzu.vmware.com/port: "8080"
spec:
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: default-gateway
sectionName: http-demo-spring-metal-openso
sectionName: http-spring-metal-openso
rules:
- backendRefs:
- group: ""
kind: Service
name: spring-metal
name: spring-metal-openso
port: 8080
weight: 1
matches:
Expand Down
4 changes: 2 additions & 2 deletions .tanzu/config/postgres-service-binding.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: services.tanzu.vmware.com/v1
kind: ServiceBinding
metadata:
name: pgvector-service-bind
name: pgvector-spring-metal-openso
namespace: default
spec:
alias: db
Expand All @@ -13,4 +13,4 @@ spec:
targetRef:
apiGroup: apps.tanzu.vmware.com
kind: ContainerApp
name: spring-metal
name: spring-metal-openso
2 changes: 1 addition & 1 deletion .tanzu/config/spring-metal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps.tanzu.vmware.com/v1
kind: ContainerApp
metadata:
creationTimestamp: null
name: spring-metal
name: spring-metal-openso
spec:
build:
buildpacks: {}
Expand Down

0 comments on commit 808621c

Please sign in to comment.