initial commit
This commit is contained in:
commit
0e6be50e37
23 changed files with 1069 additions and 0 deletions
34
testapp/db/route.yaml
Normal file
34
testapp/db/route.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: testapp-db
|
||||
spec:
|
||||
hosts:
|
||||
- testapp-db.default.svc.cluster.local
|
||||
http:
|
||||
- route:
|
||||
- destination:
|
||||
host: testapp-db.default.svc.cluster.local
|
||||
subset: v1
|
||||
weight: 50
|
||||
- destination:
|
||||
host: testapp-db.default.svc.cluster.local
|
||||
subset: v2
|
||||
weight: 50
|
||||
---
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: DestinationRule
|
||||
metadata:
|
||||
name: testapp-db
|
||||
spec:
|
||||
host: testapp-db.default.svc.cluster.local
|
||||
trafficPolicy:
|
||||
loadBalancer:
|
||||
simple: RANDOM
|
||||
subsets:
|
||||
- name: v1
|
||||
labels:
|
||||
version: v1
|
||||
- name: v2
|
||||
labels:
|
||||
version: v2
|
||||
Loading…
Add table
Add a link
Reference in a new issue