Skip to content

Commit

Permalink
add failoverPriority and ServiceRoute labels exposure for ratings (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarunich authored Mar 27, 2024
1 parent e84c2cd commit cb2ed1a
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
24 changes: 24 additions & 0 deletions gitops/bookinfo-direct/tsb-bookinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@ items:
namespaceSelector:
names:
- "*/direct-bookinfo"
- apiVersion: tsb.tetrate.io/v2
kind: WorkspaceSetting
metadata:
name: direct-bookinfo-wss
namespace: bookinfo
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: stg
tsb.tetrate.io/workspace: direct-bookinfo-ws
spec:
failoverSettings:
failoverPriority:
- "version=v2"
- "topology.istio.io/network"
defaultEastWestGatewaySettings:
- workloadSelector:
namespace: bookinfo-direct
labels:
app: direct-bookinfo-gw
exposedServices:
- serviceLabels:
app: reviews
- serviceLabels:
app: details
- apiVersion: gateway.tsb.tetrate.io/v2
kind: Group
metadata:
Expand Down
24 changes: 23 additions & 1 deletion gitops/bookinfo/tsb-bookinfo-application-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,26 @@ items:
- route:
serviceDestination:
host: "bookinfo/productpage.bookinfo.svc.cluster.local"
port: 9080
port: 9080
- apiVersion: traffic.tsb.tetrate.io/v2
kind: ServiceRoute
metadata:
name: reviews-sr
namespace: bookinfo
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: dev
tsb.tetrate.io/workspace: bookinfo-ws
tsb.tetrate.io/trafficGroup: bookinfo-tg
spec:
service: bookinfo/reviews.bookinfo.svc.cluster.local
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
- name: v3
labels:
version: v3
22 changes: 22 additions & 0 deletions gitops/bookinfo/tsb-bookinfo-hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@ items:
- "*/bookinfo"
- "*/edge"
- "*/egress"
- apiVersion: tsb.tetrate.io/v2
kind: WorkspaceSetting
metadata:
name: bookinfo-wss
namespace: bookinfo
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: dev
tsb.tetrate.io/workspace: bookinfo-ws
spec:
failoverSettings:
topologyChoice: CLUSTER
defaultEastWestGatewaySettings:
- workloadSelector:
namespace: bookinfo
labels:
app: app-gw
exposedServices:
- serviceLabels:
app: reviews
- serviceLabels:
app: details
- apiVersion: gateway.tsb.tetrate.io/v2
kind: Group
metadata:
Expand Down

0 comments on commit cb2ed1a

Please sign in to comment.